2011-05-13 18:37:55

by Hartley Sweeten

[permalink] [raw]
Subject: [PATCH] drivers/gpio/Kconfig: remove redundant depends on GPIOLIB

Since all the drivers are in a 'if GPIOLIB/endif block', the depends on GPIOLIB
is redundant so remove them.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Grant Likely <[email protected]>

---

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b7fac15..fe12959 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -77,7 +77,6 @@ config GPIO_BASIC_MMIO

config GPIO_IT8761E
tristate "IT8761E GPIO support"
- depends on GPIOLIB
help
Say yes here to support GPIO functionality of IT8761E super I/O chip.

@@ -101,7 +100,7 @@ config GPIO_VR41XX

config GPIO_SCH
tristate "Intel SCH/TunnelCreek GPIO"
- depends on GPIOLIB && PCI && X86
+ depends on PCI && X86
select MFD_CORE
select LPC_SCH
help
@@ -121,7 +120,7 @@ config GPIO_SCH

config GPIO_U300
bool "ST-Ericsson U300 COH 901 335/571 GPIO"
- depends on GPIOLIB && ARCH_U300
+ depends on ARCH_U300
help
Say yes here to support GPIO interface on ST-Ericsson U300.
The names of the two IP block variants supported are
@@ -130,7 +129,7 @@ config GPIO_U300

config GPIO_NOMADIK
bool "ST-Ericsson Nomadik GPIO"
- depends on GPIOLIB && (ARCH_U8500 || ARCH_NOMADIK)
+ depends on ARCH_U8500 || ARCH_NOMADIK
help
Say yes here to support GPIO interface for ST-Ericsson Nomadik.
This is found in the Nomadik NHK8815, DB8500, DB5500 SoCs
@@ -138,7 +137,7 @@ config GPIO_NOMADIK

config GPIO_VX855
tristate "VIA VX855/VX875 GPIO"
- depends on GPIOLIB && MFD_SUPPORT && PCI
+ depends on MFD_SUPPORT && PCI
select MFD_CORE
select MFD_VX855
help
@@ -364,13 +363,13 @@ config GPIO_ML_IOH

config GPIO_TIMBERDALE
bool "Support for timberdale GPIO IP"
- depends on MFD_TIMBERDALE && GPIOLIB && HAS_IOMEM
+ depends on MFD_TIMBERDALE && HAS_IOMEM
---help---
Add support for the GPIO IP in the timberdale FPGA.

config GPIO_RDC321X
tristate "RDC R-321x GPIO support"
- depends on PCI && GPIOLIB
+ depends on PCI
select MFD_SUPPORT
select MFD_CORE
select MFD_RDC321X


2011-05-16 03:54:48

by Grant Likely

[permalink] [raw]
Subject: Re: [PATCH] drivers/gpio/Kconfig: remove redundant depends on GPIOLIB

On Fri, May 13, 2011 at 11:37:28AM -0700, H Hartley Sweeten wrote:
> Since all the drivers are in a 'if GPIOLIB/endif block', the depends on GPIOLIB
> is redundant so remove them.
>
> Signed-off-by: H Hartley Sweeten <[email protected]>
> Cc: Grant Likely <[email protected]>

Merged, thanks.

g.