提交 b69ac524 编写于 作者: A Alexandre Courbot 提交者: Linus Walleij

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: NAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 5fcdb9dc
...@@ -30,10 +30,6 @@ config ARCH_REQUIRE_GPIOLIB ...@@ -30,10 +30,6 @@ config ARCH_REQUIRE_GPIOLIB
Selecting this from the architecture code will cause the gpiolib Selecting this from the architecture code will cause the gpiolib
code to always get built in. code to always get built in.
config GPIO_DEVRES
def_bool y
depends on HAS_IOMEM
menuconfig GPIOLIB menuconfig GPIOLIB
bool "GPIO Support" bool "GPIO Support"
...@@ -47,6 +43,10 @@ menuconfig GPIOLIB ...@@ -47,6 +43,10 @@ menuconfig GPIOLIB
if GPIOLIB if GPIOLIB
config GPIO_DEVRES
def_bool y
depends on HAS_IOMEM
config OF_GPIO config OF_GPIO
def_bool y def_bool y
depends on OF depends on OF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册