pinctrl: bcm281xx: make Kconfig dependency more strict
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 24 Sep 2014 08:15:24 +0000 (10:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Sep 2014 07:53:39 +0000 (09:53 +0200)
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>
Reviewed-by: Sherman Yin <syin@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index bfd2c2e9f6cd79b03c42dab60fc0e2dd81b4b22f..a95d5ca6d83070785f7d76765b5d4798a34b7987 100644 (file)
@@ -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