]> Git Repo - linux.git/commitdiff
Input: samsung-keypad - properly state IOMEM dependency
authorDavid Gow <[email protected]>
Mon, 28 Feb 2022 05:00:10 +0000 (21:00 -0800)
committerDmitry Torokhov <[email protected]>
Mon, 28 Feb 2022 05:03:55 +0000 (21:03 -0800)
Make the samsung-keypad driver explicitly depend on CONFIG_HAS_IOMEM, as it
calls devm_ioremap(). This prevents compile errors in some configs (e.g,
allyesconfig/randconfig under UML):

/usr/bin/ld: drivers/input/keyboard/samsung-keypad.o: in function `samsung_keypad_probe':
samsung-keypad.c:(.text+0xc60): undefined reference to `devm_ioremap'

Signed-off-by: David Gow <[email protected]>
Acked-by: anton ivanov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/keyboard/Kconfig

index 0c607da9ee10d3f540e53e89da65306eb356a219..9417ee0b1eff8fd6c45883c89806eb2e9297c337 100644 (file)
@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX
 
 config KEYBOARD_SAMSUNG
        tristate "Samsung keypad support"
-       depends on HAVE_CLK
+       depends on HAS_IOMEM && HAVE_CLK
        select INPUT_MATRIXKMAP
        help
          Say Y here if you want to use the keypad on your Samsung mobile
This page took 0.054643 seconds and 4 git commands to generate.