From: Tejun Heo Date: Tue, 19 Oct 2010 12:50:23 +0000 (+0800) Subject: crypto: hifn_795x - use cancel_delayed_work_sync() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4e523f2ad179f6bf5691ddc3cd2893856fafc66;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index e449ac5627a5..0eac3da566ba 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -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);