Commit f4e523f2ad179f6bf5691ddc3cd2893856fafc66

Authored by Tejun Heo
Committed by Herbert Xu
1 parent a752447af5

crypto: hifn_795x - use cancel_delayed_work_sync()

Make hifn_795x::hifn_remove() call cancel_delayed_work_sync() instead
of calling cancel_delayed_work() followed by flush_scheduled_work().

This is to prepare for the deprecation and removal of
flush_scheduled_work().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/crypto/hifn_795x.c
... ... @@ -2700,8 +2700,7 @@
2700 2700 dev = pci_get_drvdata(pdev);
2701 2701  
2702 2702 if (dev) {
2703   - cancel_delayed_work(&dev->work);
2704   - flush_scheduled_work();
  2703 + cancel_delayed_work_sync(&dev->work);
2705 2704  
2706 2705 hifn_unregister_rng(dev);
2707 2706 hifn_unregister_alg(dev);