Skip to content

Commit 60ba5da

Browse files
arndblinusw
authored andcommitted
pinctrl: th1520: add a CONFIG_OF dependency
When compile-testing without CONfIG_OF: drivers/pinctrl/pinctrl-th1520.c: In function 'th1520_pinctrl_dt_node_to_map': drivers/pinctrl/pinctrl-th1520.c:455:23: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Wimplicit-function-declaration] 455 | ret = pinconf_generic_parse_dt_config(child, pctldev, &configs, &nconfigs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pinconf_generic_dump_config Enforce this using Kconig dependencies. Fixes: bed5cd6 ("pinctrl: Add driver for the T-Head TH1520 SoC") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Drew Fustini <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent d7eac93 commit 60ba5da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ config PINCTRL_TPS6594
564564
config PINCTRL_TH1520
565565
tristate "Pinctrl driver for the T-Head TH1520 SoC"
566566
depends on ARCH_THEAD || COMPILE_TEST
567+
depends on OF
567568
select GENERIC_PINMUX_FUNCTIONS
568569
select GENERIC_PINCONF
569570
select PINMUX

0 commit comments

Comments
 (0)