]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpiolib: make GPIO_DEVRES depend on GPIOLIB
authorAlexandre Courbot <acourbot@nvidia.com>
Sun, 20 Oct 2013 22:14:59 +0000 (15:14 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Oct 2013 08:11:15 +0000 (10:11 +0200)
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>
drivers/gpio/Kconfig

index 92e258c58638a4f363a3e3009c464ff0c73b826b..62eb9ef47e78b6939f3f2cb22f97fdbf1f37c76a 100644 (file)
@@ -30,10 +30,6 @@ config ARCH_REQUIRE_GPIOLIB
          Selecting this from the architecture code will cause the gpiolib
          code to always get built in.
 
-config GPIO_DEVRES
-       def_bool y
-       depends on HAS_IOMEM
-
 
 menuconfig GPIOLIB
        bool "GPIO Support"
@@ -47,6 +43,10 @@ menuconfig GPIOLIB
 
 if GPIOLIB
 
+config GPIO_DEVRES
+       def_bool y
+       depends on HAS_IOMEM
+
 config OF_GPIO
        def_bool y
        depends on OF