linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: ocelot: Add platform dependency
@ 2020-05-07 11:40 Geert Uytterhoeven
  2020-05-07 11:45 ` Alexandre Belloni
  0 siblings, 1 reply; 9+ messages in thread
From: Geert Uytterhoeven @ 2020-05-07 11:40 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Belloni
  Cc: Arnd Bergmann, Microchip Linux Driver Support, linux-gpio,
	linux-mips, Geert Uytterhoeven

The Microsemi Ocelot pin controller is only present on Microsemi Ocelot
and Jaguar2 SoCs.  Add a platform dependency to the PINCTRL_OCELOT
config symbol, to avoid asking the user about it when configuring a
kernel without Ocelot or Jaguar2 support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pinctrl/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index f0ce4ce3e0f52456..bed67c08a0892240 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -394,8 +394,8 @@ config PINCTRL_RK805
 
 config PINCTRL_OCELOT
 	bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
-	depends on OF
-	depends on HAS_IOMEM
+	depends on OF && HAS_IOMEM
+	depends on MSCC_OCELOT || COMPILE_TEST
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
 	select GENERIC_PINCONF
-- 
2.17.1


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

end of thread, other threads:[~2020-05-11 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 11:40 [PATCH] pinctrl: ocelot: Add platform dependency Geert Uytterhoeven
2020-05-07 11:45 ` Alexandre Belloni
2020-05-07 11:52   ` Geert Uytterhoeven
2020-05-07 12:27   ` Lars Povlsen
2020-05-07 12:44     ` Alexandre Belloni
2020-05-11 11:39       ` Geert Uytterhoeven
2020-05-11 14:20         ` Alexandre Belloni
2020-05-11 14:48           ` Geert Uytterhoeven
2020-05-11 14:53             ` Alexandre Belloni

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).