]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: sync backlight power status in acpi_fujitsu_laptop_add()
authorMichał Kępień <kernel@kempniu.pl>
Fri, 10 Mar 2017 10:50:34 +0000 (11:50 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:17 +0000 (22:57 -0700)
commita3be7f3c1995bebe1c1abbb20d8347b650a8283e
tree76e22df6a39118556ca756f58c9522168b0890f0
parent3d93ffcaf483fe0b551287fe2358e45d855ec079
platform/x86: fujitsu-laptop: sync backlight power status in acpi_fujitsu_laptop_add()

Registering an ACPI driver does not mean the device it handles has to
exist.  As the code which syncs backlight power status uses
call_fext_func(), it needs the FUJ02E3 ACPI device to be present, so
ensure that code is only run once the FUJ02E3 device is detected.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Jonathan Woithe <jwoithe@just42.net>
drivers/platform/x86/fujitsu-laptop.c