提交 38039319 编写于 作者: D David Gow 提交者: Zheng Zengkai

Input: samsung-keypad - properly state IOMEM dependency

stable inclusion
from stable-v5.10.104
commit 3b8f2a7aed8005c115684c9126f816a3d4cfe2ea
bugzilla: https://gitee.com/openeuler/kernel/issues/I56XAC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3b8f2a7aed8005c115684c9126f816a3d4cfe2ea

--------------------------------

commit ba115adf upstream.

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: NDavid Gow <davidgow@google.com>
Acked-by: Nanton ivanov <anton.ivanov@cambridgegreys.com>
Link: https://lore.kernel.org/r/20220225041727.1902850-1-davidgow@google.comSigned-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 4e370cca
...@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX ...@@ -556,7 +556,7 @@ config KEYBOARD_PMIC8XXX
config KEYBOARD_SAMSUNG config KEYBOARD_SAMSUNG
tristate "Samsung keypad support" tristate "Samsung keypad support"
depends on HAVE_CLK depends on HAS_IOMEM && HAVE_CLK
select INPUT_MATRIXKMAP select INPUT_MATRIXKMAP
help help
Say Y here if you want to use the keypad on your Samsung mobile Say Y here if you want to use the keypad on your Samsung mobile
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册