Input: applespi - add dependency on LEDS_CLASS
authorYueHaibing <yuehaibing@huawei.com>
Wed, 31 Jul 2019 13:48:09 +0000 (06:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Jul 2019 13:50:18 +0000 (06:50 -0700)
If applespi is enabled, but LEDs class support is not, the build fails:

drivers/input/keyboard/applespi.o: In function `applespi_probe':
applespi.c:(.text+0x1fcd): undefined reference to `devm_led_classdev_register_ext'

Add "depends on LEDS_CLASS" to the Konfig

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 038b1a05eae6 ("Input: add Apple SPI keyboard and trackpad driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/Kconfig

index ebb19e21473e78415d5d9c5919eb9ee75ea3b7fa..90e8a7f2f07c863196762633930bc46a5c659319 100644 (file)
@@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI
        depends on ACPI && EFI
        depends on SPI
        depends on X86 || COMPILE_TEST
+       depends on LEDS_CLASS
        select CRC16
        help
          Say Y here if you are running Linux on any Apple MacBook8,1 or later,