From f5f4fd451634e5295cc807684a0eabd264b9db4d Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Tue, 29 May 2012 15:07:20 -0700 Subject: backlight: initialize struct backlight_properties properly In all these files, the .power field was never correctly initialized. Signed-off-by: Corentin Chary Cc: Jingoo Han Cc: Dave Airlie Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/omap2/displays/panel-acx565akm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/video/omap2/displays') diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c index d26f37ac69d8..74e7cf078505 100644 --- a/drivers/video/omap2/displays/panel-acx565akm.c +++ b/drivers/video/omap2/displays/panel-acx565akm.c @@ -532,6 +532,7 @@ static int acx_panel_probe(struct omap_dss_device *dssdev) /*------- Backlight control --------*/ + memset(&props, 0, sizeof(props)); props.fb_blank = FB_BLANK_UNBLANK; props.power = FB_BLANK_UNBLANK; props.type = BACKLIGHT_RAW; -- cgit v1.2.3