mx3fb: Fix display brightness initialization
PATCH 1/1 mx3fb: Fix display brightness initialization
__blank() uses mx3fb->backlight_level to set the display brightness. __blank() is also called from init_fb_chan() before mx3fb->backlight_level was initialized. This causes setting the display brightness to zero at probe time.
This patch moves the initialization of mx3fb->backlight_level before init_fb_chan() call.
Signed-off-by Anatolij Gustschin <[email protected]>
--- drivers/video/mx3fb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/mx3fb.c +2 -2
@@ -1486,12 +1486,12 @@ static int mx3fb_probe(struct platform_device *pdev) goto ersdc0; } + mx3fb->backlight_level =255 ; + ret =init_fb_chan (mx3fb,to_idmac_chan (chan));if (ret <0 ) goto eisdc0; - mx3fb->backlight_level =255 ; -return 0 ; eisdc0:
Signature · 8 lines
1.5.6.3 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july