crypto: use cancel_delayed_work_sync() in hifn_795x
PATCH 1/1 crypto: use cancel_delayed_work_sync() in hifn_795x
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 <[email protected]>
--- drivers/crypto/hifn_795x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/crypto/hifn_795x.c +1 -2
@@ -2700,8 +2700,7 @@ static void __devexit hifn_remove(struct 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);
Quoted 7 lines · Tejun Heo
Make
hifn_795x::hifn_remove()callcancel_delayed_work_sync()instead of callingcancel_delayed_work()followed byflush_scheduled_work().This is to prepare for the deprecation and removal of
flush_scheduled_work().Signed-off-by Tejun Heo <[email protected]>
Patch applied. Thanks Tejun!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt