Skip to content

Commit

Permalink
mtd: don't use flush_scheduled_work()
Browse files Browse the repository at this point in the history
flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush cxt->work_{erase|write} on removal instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Tejun Heo authored and David Woodhouse committed Jan 6, 2011
1 parent d983c54 commit 75c52a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/mtdoops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 75c52a4

Please sign in to comment.