diff options
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 556cbb455ed2..486f836b79df 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c | |||
@@ -47,6 +47,9 @@ | |||
47 | #include <linux/thermal.h> | 47 | #include <linux/thermal.h> |
48 | #include <acpi/acpi_bus.h> | 48 | #include <acpi/acpi_bus.h> |
49 | #include <acpi/acpi_drivers.h> | 49 | #include <acpi/acpi_drivers.h> |
50 | #ifdef CONFIG_ACPI_VIDEO | ||
51 | #include <acpi/video.h> | ||
52 | #endif | ||
50 | 53 | ||
51 | #include "asus-wmi.h" | 54 | #include "asus-wmi.h" |
52 | 55 | ||
@@ -1676,7 +1679,13 @@ static int asus_wmi_add(struct platform_device *pdev) | |||
1676 | if (err) | 1679 | if (err) |
1677 | goto fail_rfkill; | 1680 | goto fail_rfkill; |
1678 | 1681 | ||
1682 | if (asus->driver->quirks->wmi_backlight_power) | ||
1683 | acpi_video_dmi_promote_vendor(); | ||
1679 | if (!acpi_video_backlight_support()) { | 1684 | if (!acpi_video_backlight_support()) { |
1685 | #ifdef CONFIG_ACPI_VIDEO | ||
1686 | pr_info("Disabling ACPI video driver\n"); | ||
1687 | acpi_video_unregister(); | ||
1688 | #endif | ||
1680 | err = asus_wmi_backlight_init(asus); | 1689 | err = asus_wmi_backlight_init(asus); |
1681 | if (err && err != -ENODEV) | 1690 | if (err && err != -ENODEV) |
1682 | goto fail_backlight; | 1691 | goto fail_backlight; |