Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -396,7 +396,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd)
		printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n");

	cxt->mtd = NULL;
	flush_scheduled_work();
	flush_work_sync(&cxt->work_erase);
	flush_work_sync(&cxt->work_write);
}