video: deferred io cleanup
authorMagnus Damm <damm@igel.co.jp>
Fri, 19 Dec 2008 06:34:23 +0000 (15:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:48 +0000 (18:44 +0900)
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 <damm@igel.co.jp>
Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/fb_defio.c

index e6dafed..06060cc 100644 (file)
@@ -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);