eeepc-laptop: fingers off backlight if video.ko is serving this functionality
Signed-off-by: Thomas Renninger <trenn@suse.de> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
29454f1712
commit
a2bf8c0104
1 changed files with 9 additions and 3 deletions
|
@ -825,9 +825,15 @@ static int __init eeepc_laptop_init(void)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
dev = acpi_get_physical_device(ehotk->device->handle);
|
dev = acpi_get_physical_device(ehotk->device->handle);
|
||||||
result = eeepc_backlight_init(dev);
|
|
||||||
if (result)
|
if (!acpi_video_backlight_support()) {
|
||||||
goto fail_backlight;
|
result = eeepc_backlight_init(dev);
|
||||||
|
if (result)
|
||||||
|
goto fail_backlight;
|
||||||
|
} else
|
||||||
|
printk(EEEPC_INFO "Backlight controlled by ACPI video "
|
||||||
|
"driver\n");
|
||||||
|
|
||||||
result = eeepc_hwmon_init(dev);
|
result = eeepc_hwmon_init(dev);
|
||||||
if (result)
|
if (result)
|
||||||
goto fail_hwmon;
|
goto fail_hwmon;
|
||||||
|
|
Loading…
Reference in a new issue