avoid boot time warning from the back light driver
authormgross <mark.gross@intel.com>
Mon, 21 Nov 2011 06:37:09 +0000 (14:37 +0800)
committerGross, Mark <mark.gross@intel.com>
Mon, 21 Nov 2011 10:16:10 +0000 (02:16 -0800)
Change-Id: I0db6b3218e5fb846dc521441228fefa9db98d937
Reviewed-on: http://android.intel.com:8080/24660
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
drivers/staging/mrst/drv/psb_bl.c

index d8b50eb..8841a68 100755 (executable)
@@ -244,6 +244,7 @@ int psb_backlight_init(struct drm_device *dev)
 #else
        struct backlight_properties props;
        memset(&props, 0, sizeof(struct backlight_properties));
+       props.type = BACKLIGHT_PLATFORM;
        props.max_brightness = BRIGHTNESS_MAX_LEVEL;
 
        psb_backlight_device = backlight_device_register("psb-bl", NULL, (void *)dev, &psb_ops, &props);