summaryrefslogtreecommitdiff
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-09-06 18:08:05 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-09-12 11:21:12 +0200
commitbaec7e687aa066f6fa257222a0def5ea9b5b1c40 (patch)
tree5163388c1496bc9c3cf6b6fd6c4707a306585c9c /drivers/pinctrl
parentaaab90bbca3995ca312918fc92fc17e99aece098 (diff)
pinctrl: sprd: Restrict PINCTRL_SPRD to ARCH_SPRD or COMPILE_TEST
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/sprd/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig
index d24ae0164528..bc7f3fab22f1 100644
--- a/drivers/pinctrl/sprd/Kconfig
+++ b/drivers/pinctrl/sprd/Kconfig
@@ -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