Skip to contentSkip to conversation

pinctrl: axp209: add CONFIG_OF dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 15, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: axp209: add CONFIG_OF dependency

The pinconf_generic_dt_free_map and pinconf_generic_dt_node_to_map_group functions are only defined when CONFIG_OF is set:

drivers/pinctrl/pinctrl-axp209.c:312:21: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function); did you mean 'pinconf_generic_params'? drivers/pinctrl/pinctrl-axp209.c:313:18: error: 'pinconf_generic_dt_free_map' undeclared here (not in a function); did you mean 'pinconf_generic_params'?

This adds a Kconfig depdency for the driver to prevent randconfig build failures.

Fixes 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features")
---
 drivers/pinctrl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/Kconfig +1 -1
index ce126955212c..648be90ac1cb 100644
@@ -65,7 +65,7 @@ config PINCTRL_AS3722
 
 config PINCTRL_AXP209
 	tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
-	depends on MFD_AXP20X
+	depends on MFD_AXP20X && OF
 	help
 	  AXP PMICs provides multiple GPIOs that can be muxed for different
 	  functions. This driver bundles a pinctrl driver to select the function
Signature · 1 line
2.9.0
#1 lore raw

Hi Arnd,

Quoted 21 lines · Arnd Bergmann

The pinconf_generic_dt_free_map and pinconf_generic_dt_node_to_map_group functions are only defined when CONFIG_OF is set:

drivers/pinctrl/pinctrl-axp209.c:312:21: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function); did you mean 'pinconf_generic_params'? drivers/pinctrl/pinctrl-axp209.c:313:18: error: 'pinconf_generic_dt_free_map' undeclared here (not in a function); did you mean 'pinconf_generic_params'?

This adds a Kconfig depdency for the driver to prevent randconfig build failures.

Fixes 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features")
---
 drivers/pinctrl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/Kconfig +0 -0
index ce126955212c..648be90ac1cb 100644

drivers/pinctrl/Kconfig config PINCTRL_AS3722 · line 71

Quoted 8 lines
drivers/pinctrl/Kconfig +1 -1
@@ -65,7 +65,7 @@ config PINCTRL_AS3722
 
 config PINCTRL_AXP209
 	tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support"
-	depends on MFD_AXP20X
+	depends on MFD_AXP20X && OF
 	help
 	  AXP PMICs provides multiple GPIOs that can be muxed for different
 	  functions. This driver bundles a pinctrl driver to select the function

I already sent a patch fixing this issue yesterday:

https://patchwork.kernel.org/patch/10111721/

Thanks anyway :)

Quentin

Signature · 3 lines
Quentin Schulz, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com