]> git.karo-electronics.de Git - karo-tx-linux.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)
commit1877e267b39eceac0499af11993bfe00819bb65b
tree76e22df6a39118556ca756f58c9522168b0890f0
parentb8d69c16a0bdc2cae1ad709f0a9e6a2484c457a9
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