Skip to content

Commit

Permalink
crypto: hifn_795x - use cancel_delayed_work_sync()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Herbert Xu committed Oct 19, 2010
1 parent a752447 commit f4e523f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/hifn_795x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2700,8 +2700,7 @@ static void __devexit hifn_remove(struct pci_dev *pdev)
dev = pci_get_drvdata(pdev);

if (dev) {
cancel_delayed_work(&dev->work);
flush_scheduled_work();
cancel_delayed_work_sync(&dev->work);

hifn_unregister_rng(dev);
hifn_unregister_alg(dev);
Expand Down

0 comments on commit f4e523f

Please sign in to comment.