mtd: don't use flush_scheduled_work()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jan 6 10:59:02 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=75c52a49630a478ffe9c1473441779676817fce6
Commit: 75c52a49630a478ffe9c1473441779676817fce6
Parent: d983c54ebd875f5f6fd37c154195c1c456a7af70
Author: Tejun Heo <tj at kernel.org>
AuthorDate: Sat Dec 11 17:51:44 2010 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Jan 6 15:17:08 2011 +0000
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 <tj at kernel.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/mtdoops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 1ee72f3..8b10273 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -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);
}
More information about the linux-mtd-cvs
mailing list