Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b69ac524 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Linus Walleij
Browse files

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: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 5fcdb9dc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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