X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fplatform%2Fx86%2Fdell-laptop.c;h=35de903cb506b3bdf74dd0a3b265f944722b534d;hb=05fde26a943a9c55d8b498d97bb49d3d207e5069;hp=83e3d7f9d923c34c71c5baa63adbf6af55d79900;hpb=5ee7041e5bc0fe8ba04a554dc2f9a18f709bc005;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 83e3d7f9d923..35de903cb506 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "../../firmware/dcdbas.h" #include "dell-rbtn.h" @@ -1995,13 +1996,8 @@ static int __init dell_init(void) debugfs_create_file("rfkill", 0444, dell_laptop_dir, NULL, &dell_debugfs_fops); -#ifdef CONFIG_ACPI - /* In the event of an ACPI backlight being available, don't - * register the platform controller. - */ - if (acpi_video_backlight_support()) + if (acpi_video_get_backlight_type() != acpi_backlight_vendor) return 0; -#endif get_buffer(); buffer->input[0] = find_token_location(BRIGHTNESS_TOKEN);