Commit 75c52a49 authored by Tejun Heo's avatar Tejun Heo Committed by David Woodhouse

mtd: don't use flush_scheduled_work()

flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush cxt->work_{erase|write} on removal instead.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d983c54e
...@@ -396,7 +396,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd) ...@@ -396,7 +396,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd)
printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n"); printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n");
cxt->mtd = NULL; cxt->mtd = NULL;
flush_scheduled_work(); flush_work_sync(&cxt->work_erase);
flush_work_sync(&cxt->work_write);
} }
......
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