mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: Tejun Heo <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
d983c54ebd
commit
75c52a4963
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue