Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[deliverable/linux.git] / drivers / mtd / mtdoops.c
index c948150079bebe879316657f9bbc69791913dc1a..e3e40f4403235540dc5ad5f6e3efd35aa981f647 100644 (file)
@@ -401,7 +401,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);
 }
 
 
This page took 0.028617 seconds and 5 git commands to generate.