Skip to content

Commit 7fd2bf3

Browse files
committed
Remove GENERIC_GPIO config option
GENERIC_GPIO has been made equivalent to GPIOLIB in architecture code and all driver code has been switch to depend on GPIOLIB. It is thus safe to have GENERIC_GPIO removed. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca>
1 parent 76ec9d1 commit 7fd2bf3

22 files changed

Lines changed: 7 additions & 66 deletions

File tree

‎Documentation/gpio.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must
7272
not care how it's implemented.)
7373

7474
That said, if the convention is supported on their platform, drivers should
75-
use it when possible. Platforms must declare GENERIC_GPIO support in their
76-
Kconfig (boolean true), and provide an <asm/gpio.h> file. Drivers that can't
77-
work without standard GPIO calls should have Kconfig entries which depend
78-
on GENERIC_GPIO. The GPIO calls are available, either as "real code" or as
79-
optimized-away stubs, when drivers use the include file:
75+
use it when possible. Platforms must select ARCH_REQUIRE_GPIOLIB or
76+
ARCH_WANT_OPTIONAL_GPIOLIB in their Kconfig. Drivers that can't work without
77+
standard GPIO calls should have Kconfig entries which depend on GPIOLIB. The
78+
GPIO calls are available, either as "real code" or as optimized-away stubs,
79+
when drivers use the include file:
8080

8181
#include <linux/gpio.h>
8282

‎arch/alpha/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ config GENERIC_CALIBRATE_DELAY
5656
bool
5757
default y
5858

59-
config GENERIC_GPIO
60-
bool
61-
6259
config ZONE_DMA
6360
bool
6461
default y

‎arch/arm/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ config MIGHT_HAVE_PCI
107107
config SYS_SUPPORTS_APM_EMULATION
108108
bool
109109

110-
config GENERIC_GPIO
111-
bool
112-
113110
config HAVE_TCM
114111
bool
115112
select GENERIC_ALLOCATOR

‎arch/arm/plat-orion/gpio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode)
150150
}
151151

152152
/*
153-
* GENERIC_GPIO primitives.
153+
* GPIO primitives.
154154
*/
155155
static int orion_gpio_request(struct gpio_chip *chip, unsigned pin)
156156
{

‎arch/arm64/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ config SWIOTLB
9292
config IOMMU_HELPER
9393
def_bool SWIOTLB
9494

95-
config GENERIC_GPIO
96-
bool
97-
9895
source "init/Kconfig"
9996

10097
source "kernel/Kconfig.freezer"

‎arch/avr32/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ config AVR32
2626
There is an AVR32 Linux project with a web page at
2727
http://avr32linux.org/.
2828

29-
config GENERIC_GPIO
30-
def_bool n
31-
3229
config STACKTRACE_SUPPORT
3330
def_bool y
3431

‎arch/blackfin/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ config GENERIC_BUG
5555
config ZONE_DMA
5656
def_bool y
5757

58-
config GENERIC_GPIO
59-
def_bool n
60-
6158
config FORCE_MAX_ZONEORDER
6259
int
6360
default "14"

‎arch/hexagon/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ source "mm/Kconfig"
170170

171171
source "kernel/Kconfig.hz"
172172

173-
config GENERIC_GPIO
174-
def_bool n
175-
176173
endmenu
177174

178175
source "init/Kconfig"

‎arch/ia64/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ config GENERIC_CALIBRATE_DELAY
101101
config HAVE_SETUP_PER_CPU_AREA
102102
def_bool y
103103

104-
config GENERIC_GPIO
105-
bool
106-
107104
config DMI
108105
bool
109106
default y

‎arch/m68k/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ config ARCH_HAS_ILOG2_U32
3535
config ARCH_HAS_ILOG2_U64
3636
bool
3737

38-
config GENERIC_GPIO
39-
bool
40-
4138
config GENERIC_HWEIGHT
4239
bool
4340
default y

0 commit comments

Comments
 (0)