aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdoops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 1ee72f3f0512..8b102736b34a 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -396,7 +396,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd)
396 printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n"); 396 printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n");
397 397
398 cxt->mtd = NULL; 398 cxt->mtd = NULL;
399 flush_scheduled_work(); 399 flush_work_sync(&cxt->work_erase);
400 flush_work_sync(&cxt->work_write);
400} 401}
401 402
402 403