From: Magnus Damm Date: Fri, 19 Dec 2008 06:34:23 +0000 (+0900) Subject: video: deferred io cleanup X-Git-Tag: v2.6.29-rc1~591^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6e1038a95bebb8a1ad6066c95aa9c3af6963c9ff;p=linux-2.6-omap-h63xx.git video: deferred io cleanup Make sure the mmap callback is set to NULL in the deferred io cleanup function. This way we can enable and disable deferred io on the fly. Signed-off-by: Magnus Damm Acked-by: Jaya Kumar Signed-off-by: Paul Mundt --- diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index e6dafeddfa5..06060ccd3c2 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c @@ -202,6 +202,9 @@ void fb_deferred_io_cleanup(struct fb_info *info) page = vmalloc_to_page(screen_base + i); page->mapping = NULL; } + + info->fbops->fb_mmap = NULL; + mutex_destroy(&fbdefio->lock); } EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);