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)
commit467fc4988986865b5dbcc8cc6a86c9b650cb0c6f
treeef990fb4c02340c54deb550d506a16097158a31c
parentba087e6f69381de6c91d6634aa0f603a2fdc96a9
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