Skip to content

Commit 44e445e

Browse files
zhengbin13Linus Walleij
authored andcommitted
pinctrl: nuvoton: wpcm450: Fix build error without OF
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: a1d1e0e ("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>
1 parent 168a0ab commit 44e445e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pinctrl/nuvoton/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
config PINCTRL_WPCM450
44
tristate "Pinctrl and GPIO driver for Nuvoton WPCM450"
55
depends on ARCH_WPCM450 || COMPILE_TEST
6+
depends on OF
67
select PINMUX
78
select PINCONF
89
select GENERIC_PINCONF

0 commit comments

Comments
 (0)