All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: bcm281xx: make Kconfig dependency more strict
@ 2014-09-24  8:15 Uwe Kleine-König
  2014-09-25  7:54 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2014-09-24  8:15 UTC (permalink / raw)
  To: linux-arm-kernel

This driver is only useful on BCM281xx, so let the driver depend on
ARCH_BCM_MOBILE but allow compile coverage testing.
The main benefit is that the driver isn't available to be selected for
machines that don't have the matching hardware.

Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
This patch was sent earlier when the Kconfig symbol was still named
"PINCTRL_CAPRI":

	Date: Tue,  1 Apr 2014 22:10:21 +0200
	Subject: [PATCH] pinctrl: capri: make Kconfig dependency more strict
	Message-Id: <1396383021-2295-1-git-send-email-u.kleine-koenig@pengutronix.de>

and got a

	Reviewed-by: Sherman Yin <syin@broadcom.com>

back then.

Best regards
Uwe

 drivers/pinctrl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index bfd2c2e9f6cd..a95d5ca6d830 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -86,7 +86,7 @@ config PINCTRL_BCM2835
 
 config PINCTRL_BCM281XX
 	bool "Broadcom BCM281xx pinctrl driver"
-	depends on OF
+	depends on OF && (ARCH_BCM_MOBILE || COMPILE_TEST)
 	select PINMUX
 	select PINCONF
 	select GENERIC_PINCONF
-- 
2.1.0

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

end of thread, other threads:[~2014-09-25  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24  8:15 [PATCH] pinctrl: bcm281xx: make Kconfig dependency more strict Uwe Kleine-König
2014-09-25  7:54 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.