aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fb_defio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fb_defio.c')
-rw-r--r--drivers/video/fb_defio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c
index 32814e8800e..c27e153d888 100644
--- a/drivers/video/fb_defio.c
+++ b/drivers/video/fb_defio.c
@@ -223,8 +223,7 @@ void fb_deferred_io_cleanup(struct fb_info *info)
223 int i; 223 int i;
224 224
225 BUG_ON(!fbdefio); 225 BUG_ON(!fbdefio);
226 cancel_delayed_work(&info->deferred_work); 226 cancel_delayed_work_sync(&info->deferred_work);
227 flush_scheduled_work();
228 227
229 /* clear out the mapping that we setup */ 228 /* clear out the mapping that we setup */
230 for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) { 229 for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) {