aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fb_defio.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-12-19 01:34:23 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:44:48 -0500
commit6e1038a95bebb8a1ad6066c95aa9c3af6963c9ff (patch)
tree70e4bb89c1d76bf7785ad8ae88519df4fda145f3 /drivers/video/fb_defio.c
parent87884bd8ae42c875adbd62c84f47ed1cbb3e5090 (diff)
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 <damm@igel.co.jp> Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/fb_defio.c')
-rw-r--r--drivers/video/fb_defio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c
index e6dafeddfa5b..06060ccd3c23 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)
202 page = vmalloc_to_page(screen_base + i); 202 page = vmalloc_to_page(screen_base + i);
203 page->mapping = NULL; 203 page->mapping = NULL;
204 } 204 }
205
206 info->fbops->fb_mmap = NULL;
207 mutex_destroy(&fbdefio->lock);
205} 208}
206EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup); 209EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);
207 210