Commit c0f358fd authored by Ren Zhijie's avatar Ren Zhijie Committed by Linus Walleij

pinctrl: pinctrl-loongson2: fix Kconfig dependency

If CONFIG_PINCTRL_LOONGSON2=y and CONFIG_OF is not set,
gcc complained about undefined reference:

drivers/pinctrl/pinctrl-loongson2.o: In function `pinconf_generic_dt_node_to_map_all':
pinctrl-loongson2.c:(.text+0x1c4): undefined reference to
`pinconf_generic_dt_node_to_map'

To fix this error, add depends on OF to
config PINCTRL_LOONGSON2.

Fixes: f73f88ac ("pinctrl: pinctrl-loongson2: add pinctrl driver support")
Signed-off-by: default avatarRen Zhijie <renzhijie2@huawei.com>
Link: https://lore.kernel.org/r/20221121132608.230645-1-renzhijie2@huawei.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d53f77d7
......@@ -260,7 +260,7 @@ config PINCTRL_FALCON
config PINCTRL_LOONGSON2
tristate "Pinctrl driver for the Loongson-2 SoC"
depends on LOONGARCH || COMPILE_TEST
depends on OF && (LOONGARCH || COMPILE_TEST)
select PINMUX
select GENERIC_PINCONF
help
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment