mx3fb: some debug and initialisation fixes
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>
Tue, 2 Feb 2010 21:43:59 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Feb 2010 02:11:21 +0000 (18:11 -0800)
commitb3cb53721890879d7bde31f5f9eefd4edf41ab64
tree5d1ead5aef27af84e332cdb3c0ed9d75c18472f7
parent859ddf09743a8cc680af33f7259ccd0fd36bfe9d
mx3fb: some debug and initialisation fixes

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 <at> gmx.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/mx3fb.c