From: Thomas Renninger Date: Fri, 1 Aug 2008 15:37:57 +0000 (+0200) Subject: asus-acpi: fingers off backlight if video.ko is serving this functionality X-Git-Tag: v2.6.28-rc5~77^2~2^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6766fec3669d5053b987e111afb348b885237bfc;p=linux-2.6-omap-h63xx.git asus-acpi: fingers off backlight if video.ko is serving this functionality Signed-off-by: Thomas Renninger Acked-by: Zhang Rui Signed-off-by: Andi Kleen Signed-off-by: Len Brown --- diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index a9d5228724a..8fb8b359104 100644 --- a/drivers/misc/asus-laptop.c +++ b/drivers/misc/asus-laptop.c @@ -1208,9 +1208,13 @@ static int __init asus_laptop_init(void) dev = acpi_get_physical_device(hotk->device->handle); - result = asus_backlight_init(dev); - if (result) - goto fail_backlight; + if (!acpi_video_backlight_support()) { + result = asus_backlight_init(dev); + if (result) + goto fail_backlight; + } else + printk(ASUS_INFO "Brightness ignored, must be controlled by " + "ACPI video driver\n"); result = asus_led_init(dev); if (result)