pinctrl: msm8x74: make Kconfig dependency more strict
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 1 Apr 2014 20:25:59 +0000 (22:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 06:41:35 +0000 (08:41 +0200)
This driver is only useful on MSM8x74, so let the driver depend on
ARCH_QCOM 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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index a3ec264..fbd7eda 100644 (file)
@@ -232,7 +232,7 @@ config PINCTRL_APQ8064
 
 config PINCTRL_MSM8X74
        tristate "Qualcomm 8x74 pin controller driver"
-       depends on GPIOLIB && OF
+       depends on GPIOLIB && OF && (ARCH_QCOM || COMPILE_TEST)
        select PINCTRL_MSM
        help
          This is the pinctrl, pinmux, pinconf and gpiolib driver for the