OSDN Git Service

pinctrl: nuvoton: wpcm450: Fix build error without OF
authorZheng Bin <zhengbin13@huawei.com>
Fri, 25 Mar 2022 07:44:50 +0000 (15:44 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Mar 2022 20:14:58 +0000 (21:14 +0100)
If OF is not set, bulding fails:

drivers/pinctrl/nuvoton/pinctrl-wpcm450.o: In function `wpcm450_dt_node_to_map':
pinctrl-wpcm450.c:(.text+0x404): undefined reference to `pinconf_generic_dt_node_to_map'

Make PINCTRL_WPCM450 depends on OF to fix this.

Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/20220325074450.3228840-1-zhengbin13@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/Kconfig

index b48d329..852b0d0 100644 (file)
@@ -3,6 +3,7 @@
 config PINCTRL_WPCM450
        tristate "Pinctrl and GPIO driver for Nuvoton WPCM450"
        depends on ARCH_WPCM450 || COMPILE_TEST
+       depends on OF
        select PINMUX
        select PINCONF
        select GENERIC_PINCONF