Commit f4e523f2 authored by Tejun Heo's avatar Tejun Heo Committed by Herbert Xu

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: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a752447a
...@@ -2700,8 +2700,7 @@ static void __devexit hifn_remove(struct pci_dev *pdev) ...@@ -2700,8 +2700,7 @@ static void __devexit hifn_remove(struct pci_dev *pdev)
dev = pci_get_drvdata(pdev); dev = pci_get_drvdata(pdev);
if (dev) { if (dev) {
cancel_delayed_work(&dev->work); cancel_delayed_work_sync(&dev->work);
flush_scheduled_work();
hifn_unregister_rng(dev); hifn_unregister_rng(dev);
hifn_unregister_alg(dev); hifn_unregister_alg(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment