aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2013-10-20 18:14:59 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-10-29 21:26:13 -0400
commitb69ac52449c658b7ac40034dc3c5f5f4a71a723d (patch)
tree9ad272c311df0307aa0dd2ddada7c0d219ab0440
parent5fcdb9dc98e76001060bb89e3b1269384f9f5201 (diff)
gpiolib: make GPIO_DEVRES depend on GPIOLIB
Current Kconfig allows GPIO_DEVRES to be selected and compiled without GPIOLIB. This does not make sense anymore since GPIOLIB has become the exclusive way to deal with GPIOs. This patch makes GPIO_DEVRES available only if GPIOLIB is selected. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/Kconfig8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 92e258c58638..62eb9ef47e78 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -30,10 +30,6 @@ config ARCH_REQUIRE_GPIOLIB
30 Selecting this from the architecture code will cause the gpiolib 30 Selecting this from the architecture code will cause the gpiolib
31 code to always get built in. 31 code to always get built in.
32 32
33config GPIO_DEVRES
34 def_bool y
35 depends on HAS_IOMEM
36
37 33
38menuconfig GPIOLIB 34menuconfig GPIOLIB
39 bool "GPIO Support" 35 bool "GPIO Support"
@@ -47,6 +43,10 @@ menuconfig GPIOLIB
47 43
48if GPIOLIB 44if GPIOLIB
49 45
46config GPIO_DEVRES
47 def_bool y
48 depends on HAS_IOMEM
49
50config OF_GPIO 50config OF_GPIO
51 def_bool y 51 def_bool y
52 depends on OF 52 depends on OF