[PATCH 2/2] pinctrl: sprd: add CONFIG_OF dependency
From: Arnd Bergmann
Date: Tue Sep 05 2017 - 03:59:01 EST
Without CONFIG_OF, we run into a build error:
drivers/pinctrl/sprd/pinctrl-sprd.c: In function 'sprd_dt_node_to_map':
drivers/pinctrl/sprd/pinctrl-sprd.c:290:8: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
This adds a Kconfig dependency for it.
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
drivers/pinctrl/sprd/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig
index ec21b8bae487..e75cde2e1b46 100644
--- a/drivers/pinctrl/sprd/Kconfig
+++ b/drivers/pinctrl/sprd/Kconfig
@@ -4,6 +4,7 @@
config PINCTRL_SPRD
bool "Spreadtrum pinctrl driver"
+ depends on OF
select PINMUX
select PINCONF
select GENERIC_PINCONF
--
2.9.0