platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
authorMichał Kępień <kernel@kempniu.pl>
Fri, 10 Mar 2017 10:50:35 +0000 (11:50 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:17 +0000 (22:57 -0700)
commitaea3137c2cb641e69b80ee5b3c376120034e458d
tree30b9bb09c3fcc05e83dafddc785ccfcbe87c0b5d
parent1877e267b39eceac0499af11993bfe00819bb65b
platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present

As the backlight device registered by fujitsu-laptop relies on the
FUJ02B1 ACPI device being present, only register the backlight device
once that ACPI device is detected.

Suggested-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
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