From: Randy Dunlap Date: Mon, 25 Feb 2019 23:52:14 +0000 (+0000) Subject: platform/x86: fix PCENGINES_APU2 Kconfig warning X-Git-Tag: v5.1-rc1~102^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a422bf11bdb4b95fc78e175339e8eed501e9c13c;p=users%2Fhch%2Fmisc.git platform/x86: fix PCENGINES_APU2 Kconfig warning Fix Kconfig warning for PCENGINES_APU2 symbol: WARNING: unmet direct dependencies detected for KEYBOARD_GPIO_POLLED Depends on [n]: !UML && INPUT [=y] && INPUT_KEYBOARD [=n] && GPIOLIB [=y] Selected by [y]: - PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] Add INPUT_KEYBOARD dependency for KEYBOARD_GPIO_POLLED. Add LEDS_CLASS dependency for LEDS_GPIO. Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver") Reported-by: Arnd Bergmann Signed-off-by: Randy Dunlap Cc: Enrico Weigelt, metux IT consult Signed-off-by: Linus Walleij --- diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 851ea921a58d..a1ed13183559 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1305,6 +1305,8 @@ config HUAWEI_WMI config PCENGINES_APU2 tristate "PC Engines APUv2/3 front button and LEDs driver" + depends on INPUT && INPUT_KEYBOARD + depends on LEDS_CLASS select GPIO_AMD_FCH select KEYBOARD_GPIO_POLLED select LEDS_GPIO