Skip to content

Commit

Permalink
gpiolib: make GPIO_DEVRES depend on GPIOLIB
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Courbot authored and Linus Walleij committed Oct 30, 2013
1 parent 5fcdb9d commit b69ac52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit b69ac52

Please sign in to comment.