gma500: backlight warning
authorAlan Cox <alan@linux.jf.intel.com>
Wed, 13 Apr 2011 09:36:19 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Apr 2011 00:12:57 +0000 (17:12 -0700)
The current bl code checks for backlight types and warns if they are not
properly set. Set ours to avoid the warning spew

(This one alone is probably 2.6.39 candidate)

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_bl.c

index 57b9a5e..5dffc71 100644 (file)
@@ -194,6 +194,7 @@ int psb_backlight_init(struct drm_device *dev)
        struct backlight_properties props;
        memset(&props, 0, sizeof(struct backlight_properties));
        props.max_brightness = 100;
+       props.type = BACKLIGHT_PLATFORM;
 
        psb_backlight_device = backlight_device_register("psb-bl", NULL,
                                                (void *)dev, &psb_ops, &props);