Commit 36207d11 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4df25c69
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -194,6 +194,7 @@ int psb_backlight_init(struct drm_device *dev)
	struct backlight_properties props;
	struct backlight_properties props;
	memset(&props, 0, sizeof(struct backlight_properties));
	memset(&props, 0, sizeof(struct backlight_properties));
	props.max_brightness = 100;
	props.max_brightness = 100;
	props.type = BACKLIGHT_PLATFORM;


	psb_backlight_device = backlight_device_register("psb-bl", NULL,
	psb_backlight_device = backlight_device_register("psb-bl", NULL,
						(void *)dev, &psb_ops, &props);
						(void *)dev, &psb_ops, &props);