mx3fb: some debug and initialisation fixes
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>
Tue, 2 Feb 2010 21:43:59 +0000 (13:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Feb 2010 12:51:00 +0000 (04:51 -0800)
commit906f68dd91cc512036909a10350d479dfc56d378
tree96a257ec9fbaf2b3a6b531eb222b8b16a76db2ed
parent682efb8384326571bb180214a5d4661cc6befa41
mx3fb: some debug and initialisation fixes

commit b3cb53721890879d7bde31f5f9eefd4edf41ab64 upstream.

Fix the kernel oops when dev_dbg is called with mx3_fbi->txd == NULL

Fix the late initialisation of mx3fb->backlight_level.  If not, in the
chain of function started by init_fb_chan(), in __blank() call
sdc_set_brightness(mx3fb, mx3fb->backlight_level) that will shut down the
CONTRAST PWM output.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/mx3fb.c