linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF
@ 2016-07-16 17:16 Jérémy Lefaure
  2016-07-16 17:16 ` [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency " Jérémy Lefaure
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jérémy Lefaure @ 2016-07-16 17:16 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio

These two patches fix a missing dependency on CONFIG_OF for
PINCTRL_CYGNUS_MUX and PINCTRL_NSP_MUX Kconfig symbols.

Since these two changes concern two different drivers, I split into
two commits:
[PATCH 1/2] pinctrl: cygnus-mux: add missing dependency on CONFIG_OF
[PATCH 2/2] pinctrl: nsp: add missing dependency on CONFIG_OF

Thank you for your time,
Jérémy Lefaure
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency on CONFIG_OF
  2016-07-16 17:16 [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF Jérémy Lefaure
@ 2016-07-16 17:16 ` Jérémy Lefaure
  2016-07-16 17:16 ` [PATCH 2/2] pinctrl: nsp: " Jérémy Lefaure
  2016-07-22 15:09 ` [PATCH 0/2] pinctrl: add missing dependencies " Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Jérémy Lefaure @ 2016-07-16 17:16 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio, Jérémy Lefaure

There is a build error when CONFIG_OF is disabled (tested with
COMPILE_TEST enabled):

drivers/pinctrl/bcm/pinctrl-cygnus-mux.c:739:20: error:
‘pinconf_generic_dt_node_to_map_group’ undeclared here (not in a
function)
  .dt_node_to_map = pinconf_generic_dt_node_to_map_group,

This commit adds a dependency on CONFIG_OF for PINCTRL_CYGNUS_MUX
Kconfig symbol to fix this problem.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
---
 drivers/pinctrl/bcm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
index 7967c67..6351028 100644
--- a/drivers/pinctrl/bcm/Kconfig
+++ b/drivers/pinctrl/bcm/Kconfig
@@ -59,7 +59,7 @@ config PINCTRL_IPROC_GPIO
 
 config PINCTRL_CYGNUS_MUX
 	bool "Broadcom Cygnus IOMUX driver"
-	depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
+	depends on OF && (ARCH_BCM_CYGNUS || COMPILE_TEST)
 	select PINMUX
 	select GENERIC_PINCONF
 	default ARCH_BCM_CYGNUS
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] pinctrl: nsp: add missing dependency on CONFIG_OF
  2016-07-16 17:16 [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF Jérémy Lefaure
  2016-07-16 17:16 ` [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency " Jérémy Lefaure
@ 2016-07-16 17:16 ` Jérémy Lefaure
  2016-07-22 15:09 ` [PATCH 0/2] pinctrl: add missing dependencies " Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Jérémy Lefaure @ 2016-07-16 17:16 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio, Jérémy Lefaure

There is a build error when CONFIG_OF is disabled (tested with
COMPILE_TEST enabled):

drivers/pinctrl/bcm/pinctrl-nsp-mux.c:356:20: error:
‘pinconf_generic_dt_node_to_map_group’ undeclared here (not in a
function)
  .dt_node_to_map = pinconf_generic_dt_node_to_map_group,

This commit adds a dependency on CONFIG_OF for PINCTRL_NSP_MUX
Kconfig symbol to fix this problem.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
---
 drivers/pinctrl/bcm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
index 6351028..2a2df55 100644
--- a/drivers/pinctrl/bcm/Kconfig
+++ b/drivers/pinctrl/bcm/Kconfig
@@ -102,7 +102,7 @@ config PINCTRL_NS2_MUX
 
 config PINCTRL_NSP_MUX
 	bool "Broadcom NSP IOMUX driver"
-	depends on (ARCH_BCM_NSP || COMPILE_TEST)
+	depends on OF && (ARCH_BCM_NSP || COMPILE_TEST)
 	select PINMUX
 	select GENERIC_PINCONF
 	default ARCH_BCM_NSP
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF
  2016-07-16 17:16 [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF Jérémy Lefaure
  2016-07-16 17:16 ` [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency " Jérémy Lefaure
  2016-07-16 17:16 ` [PATCH 2/2] pinctrl: nsp: " Jérémy Lefaure
@ 2016-07-22 15:09 ` Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2016-07-22 15:09 UTC (permalink / raw)
  To: Jérémy Lefaure, Arnd Bergmann; +Cc: linux-gpio@vger.kernel.org

On Sat, Jul 16, 2016 at 7:16 PM, Jérémy Lefaure
<jeremy.lefaure@lse.epita.fr> wrote:

> These two patches fix a missing dependency on CONFIG_OF for
> PINCTRL_CYGNUS_MUX and PINCTRL_NSP_MUX Kconfig symbols.
>
> Since these two changes concern two different drivers, I split into
> two commits:
> [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency on CONFIG_OF
> [PATCH 2/2] pinctrl: nsp: add missing dependency on CONFIG_OF

I got a similar patch from Arnd Bergmann which is already merged.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-22 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16 17:16 [PATCH 0/2] pinctrl: add missing dependencies on CONFIG_OF Jérémy Lefaure
2016-07-16 17:16 ` [PATCH 1/2] pinctrl: cygnus-mux: add missing dependency " Jérémy Lefaure
2016-07-16 17:16 ` [PATCH 2/2] pinctrl: nsp: " Jérémy Lefaure
2016-07-22 15:09 ` [PATCH 0/2] pinctrl: add missing dependencies " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).