summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500
diff options
context:
space:
mode:
authorAlan Cox2011-04-13 11:36:19 +0200
committerGreg Kroah-Hartman2011-04-26 02:12:57 +0200
commit36207d1167c76b9b3d986cdb36bd3468a367cafb (patch)
tree81770749b3674cf6910aba0e968912a7b1e84d8b /drivers/staging/gma500
parentgma500: prepare to do some actual memory management (diff)
downloadkernel-qcow2-linux-36207d1167c76b9b3d986cdb36bd3468a367cafb.tar.gz
kernel-qcow2-linux-36207d1167c76b9b3d986cdb36bd3468a367cafb.tar.xz
kernel-qcow2-linux-36207d1167c76b9b3d986cdb36bd3468a367cafb.zip
gma500: backlight warning
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>
Diffstat (limited to 'drivers/staging/gma500')
-rw-r--r--drivers/staging/gma500/psb_bl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/gma500/psb_bl.c b/drivers/staging/gma500/psb_bl.c
index 57b9a5e5e7b3..5dffc71c5125 100644
--- a/drivers/staging/gma500/psb_bl.c
+++ b/drivers/staging/gma500/psb_bl.c
@@ -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);