]> git.baikalelectronics.ru Git - kernel.git/commit
video: deferred io cleanup fix for sh_mobile_lcdcfb
authorMagnus Damm <damm@igel.co.jp>
Tue, 10 Mar 2009 06:08:49 +0000 (06:08 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 10 Mar 2009 06:23:01 +0000 (15:23 +0900)
commit3df3eb459f2916059b07c0b0e1cea97b660908f3
treeef990fb4c02340c54deb550d506a16097158a31c
parent11b585b7c47a71376f7687f6312aaebc7345e6c6
video: deferred io cleanup fix for sh_mobile_lcdcfb

Fix deferred io cleanup patch in the sh_mobile_lcdcfb driver.

If probe() fails early the sh_mobile_lcdc_stop() function will
be called to clean up deferred io. This patch modifies the
code to only call fb_deferred_io_cleanup() after deferred io
has been initialized.

With this patch applied we no longer hit BUG_ON() inside
fb_deferred_io_cleanup(). Triggers on a Migo-R with the
SYS QVGA panel board unmounted.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c