* [PATCH] pinctrl: axp209: add CONFIG_OF dependency
@ 2017-12-15 12:48 Arnd Bergmann
2017-12-15 12:53 ` Quentin Schulz
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-12-15 12:48 UTC (permalink / raw)
To: Linus Walleij; +Cc: Arnd Bergmann, Quentin Schulz, linux-gpio, linux-kernel
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/pinctrl/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index ce126955212c..648be90ac1cb 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -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
--
2.9.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pinctrl: axp209: add CONFIG_OF dependency
2017-12-15 12:48 [PATCH] pinctrl: axp209: add CONFIG_OF dependency Arnd Bergmann
@ 2017-12-15 12:53 ` Quentin Schulz
0 siblings, 0 replies; 2+ messages in thread
From: Quentin Schulz @ 2017-12-15 12:53 UTC (permalink / raw)
To: Arnd Bergmann, Linus Walleij; +Cc: linux-gpio, linux-kernel
Hi Arnd,
On 15/12/2017 13:48, Arnd Bergmann wrote:
> 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")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/pinctrl/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
> index ce126955212c..648be90ac1cb 100644
> --- a/drivers/pinctrl/Kconfig
> +++ b/drivers/pinctrl/Kconfig
> @@ -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
--
Quentin Schulz, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-15 12:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 12:48 [PATCH] pinctrl: axp209: add CONFIG_OF dependency Arnd Bergmann
2017-12-15 12:53 ` Quentin Schulz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®