Skip to content

Commit ba115ad

Browse files
sulixdtor
authored andcommitted
Input: samsung-keypad - properly state IOMEM dependency
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]>
1 parent 7b1f781 commit ba115ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/keyboard/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX
556556

557557
config KEYBOARD_SAMSUNG
558558
tristate "Samsung keypad support"
559-
depends on HAVE_CLK
559+
depends on HAS_IOMEM && HAVE_CLK
560560
select INPUT_MATRIXKMAP
561561
help
562562
Say Y here if you want to use the keypad on your Samsung mobile

0 commit comments

Comments
 (0)