pinctrl: sprd: Restrict PINCTRL_SPRD to ARCH_SPRD or COMPILE_TEST
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 6 Sep 2017 16:08:05 +0000 (18:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Sep 2017 09:21:12 +0000 (11:21 +0200)
The Spreadtrum pinctrl drivers are only useful when building for a
Spreadtrum platform.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sprd/Kconfig

index d24ae0164528517f4cb4d55069f7633b1157f12d..bc7f3fab22f1c43142e260313d99ebb2be6f4320 100644 (file)
@@ -4,11 +4,12 @@
 
 config PINCTRL_SPRD
        bool "Spreadtrum pinctrl driver"
+       depends on OF
+       depends on ARCH_SPRD || COMPILE_TEST
        select PINMUX
        select PINCONF
        select GENERIC_PINCONF
        select GENERIC_PINMUX_FUNCTIONS
-       depends on OF
        help
          Say Y here to enable Spreadtrum pinctrl driver