Skip to content

Commit e77ff77

Browse files
YueHaibingdtor
authored andcommitted
Input: applespi - add dependency on LEDS_CLASS
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 <[email protected]> Fixes: 038b1a0 ("Input: add Apple SPI keyboard and trackpad driver") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 25f8c83 commit e77ff77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/keyboard/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI
7676
depends on ACPI && EFI
7777
depends on SPI
7878
depends on X86 || COMPILE_TEST
79+
depends on LEDS_CLASS
7980
select CRC16
8081
help
8182
Say Y here if you are running Linux on any Apple MacBook8,1 or later,

0 commit comments

Comments
 (0)