Skip to contentSkip to conversation

Input: samsung-keypad - Properly state IOMEM dependency

PATCH Superseded David Gow 2 participants 2 messages Feb 24, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

David Gow

author
#0 lore raw

PATCH 1/1 Input: samsung-keypad - Properly state IOMEM dependency

Make the samsung-keypad driver explicitly depend on CONFIG_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'

---
 drivers/input/keyboard/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/keyboard/Kconfig +1 -1
index 0c607da9ee10..5c98d5f996e4 100644
@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX
 
 config KEYBOARD_SAMSUNG
 	tristate "Samsung keypad support"
-	depends on HAVE_CLK
+	depends on IOMEM && HAVE_CLK
 	select INPUT_MATRIXKMAP
 	help
 	  Say Y here if you want to use the keypad on your Samsung mobile
Signature · 1 line
2.35.1.473.g83b2b277ed-goog
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · David Gow

Make the samsung-keypad driver explicitly depend on CONFIG_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'

---
  drivers/input/keyboard/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/keyboard/Kconfig +0 -0
index 0c607da9ee10..5c98d5f996e4 100644

drivers/input/keyboard/Kconfig config KEYBOARD_PMIC8XXX · line 562

Quoted 8 lines
drivers/input/keyboard/Kconfig +1 -1
@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX
 
  config KEYBOARD_SAMSUNG
  	tristate "Samsung keypad support"
-	depends on HAVE_CLK
+	depends on IOMEM && HAVE_CLK
  	select INPUT_MATRIXKMAP
  	help
  	  Say Y here if you want to use the keypad on your Samsung mobile
Signature · 8 lines
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/

_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um