video: fix deferred io fsync()
authorMagnus Damm <damm@igel.co.jp>
Fri, 19 Dec 2008 06:34:09 +0000 (15:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:48 +0000 (18:44 +0900)
commit87884bd8ae42c875adbd62c84f47ed1cbb3e5090
tree93f4632aac9c3a3579702e4b3a5dad16b5c27fa1
parent0790555437df2b6070af8f021b8d2ef79e70e144
video: fix deferred io fsync()

If CONFIG_FB_DEFERRED_IO is set, but there are framebuffers
registered that does not make use of deferred io, then fsync()
on those framebuffers will result in a crash. Fix that.

This is needed for sh_mobile_lcdcfb since we always enable
deferred io at compile time but we may disable deferred io
for some types of hardware configurations.

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