From: Randy Dunlap Date: Wed, 30 Nov 2022 23:01:07 +0000 (-0800) Subject: Input: wistron_btns - disable on UML X-Git-Tag: v6.6.7~1735^2~32^2~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2b80d9dd14cb5b70dc254bddbc4eea932694791;p=platform%2Fkernel%2Flinux-starfive.git Input: wistron_btns - disable on UML The wistron_btns driver calls rtc_cmos_read(), which isn't available with UML builds, so disable this driver on UML. Prevents this build error: ld: drivers/input/misc/wistron_btns.o: in function `poll_bios': wistron_btns.c:(.text+0x4be): undefined reference to `rtc_cmos_read' Fixes: 0bbadafdc49d ("um: allow disabling NO_IOMEM") # v5.14+ Signed-off-by: Randy Dunlap Link: https://lore.kernel.org/r/20221130161604.1879-1-rdunlap@infradead.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 84765e15b99e..f3cf189c419b 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -330,7 +330,7 @@ config INPUT_CPCAP_PWRBUTTON config INPUT_WISTRON_BTNS tristate "x86 Wistron laptop button interface" - depends on X86_32 + depends on X86_32 && !UML select INPUT_SPARSEKMAP select NEW_LEDS select LEDS_CLASS