diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtdoops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index 551e316e4454..438737a1f59a 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -387,8 +387,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd) | |||
387 | printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n"); | 387 | printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n"); |
388 | 388 | ||
389 | cxt->mtd = NULL; | 389 | cxt->mtd = NULL; |
390 | flush_work_sync(&cxt->work_erase); | 390 | flush_work(&cxt->work_erase); |
391 | flush_work_sync(&cxt->work_write); | 391 | flush_work(&cxt->work_write); |
392 | } | 392 | } |
393 | 393 | ||
394 | 394 | ||