Skip to content

Commit aaab90b

Browse files
rddunlapLinus Walleij
authored andcommitted
pinctrl: sprd: fix build errors and dependencies
Fix build errors when CONFIG_OF is not enabled. Also, the pinctrl-sprd-sc9860 driver uses functions from the pinctrl-sprd driver, so the former should depend on the latter driver. ../drivers/pinctrl/sprd/pinctrl-sprd.c: In function 'sprd_dt_node_to_map': ../drivers/pinctrl/sprd/pinctrl-sprd.c:290:2: error: implicit declaration of function 'pinconf_generic_parse_dt_config' [-Werror=implicit-function-declaration] ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, ^ ../drivers/pinctrl/sprd/pinctrl-sprd.c: At top level: ../drivers/pinctrl/sprd/pinctrl-sprd.c:844:44: error: array type has incomplete element type static const struct pinconf_generic_params sprd_dt_params[] = { ^ Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Baolin Wang <baolin.wang@spreadtrum.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: linux-gpio@vger.kernel.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 045b579 commit aaab90b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/pinctrl/sprd/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ config PINCTRL_SPRD
88
select PINCONF
99
select GENERIC_PINCONF
1010
select GENERIC_PINMUX_FUNCTIONS
11+
depends on OF
1112
help
1213
Say Y here to enable Spreadtrum pinctrl driver
1314

1415
config PINCTRL_SPRD_SC9860
1516
bool "Spreadtrum SC9860 pinctrl driver"
17+
depends on PINCTRL_SPRD
1618
help
1719
Say Y here to enable Spreadtrum SC9860 pinctrl driver

0 commit comments

Comments
 (0)