Commit 7fd2bf3d authored by Alexandre Courbot's avatar Alexandre Courbot

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: default avatarAlexandre Courbot <acourbot@nvidia.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 76ec9d18
...@@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must ...@@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must
not care how it's implemented.) not care how it's implemented.)
That said, if the convention is supported on their platform, drivers should That said, if the convention is supported on their platform, drivers should
use it when possible. Platforms must declare GENERIC_GPIO support in their use it when possible. Platforms must select ARCH_REQUIRE_GPIOLIB or
Kconfig (boolean true), and provide an <asm/gpio.h> file. Drivers that can't ARCH_WANT_OPTIONAL_GPIOLIB in their Kconfig. Drivers that can't work without
work without standard GPIO calls should have Kconfig entries which depend standard GPIO calls should have Kconfig entries which depend on GPIOLIB. The
on GENERIC_GPIO. The GPIO calls are available, either as "real code" or as GPIO calls are available, either as "real code" or as optimized-away stubs,
optimized-away stubs, when drivers use the include file: when drivers use the include file:
#include <linux/gpio.h> #include <linux/gpio.h>
......
...@@ -56,9 +56,6 @@ config GENERIC_CALIBRATE_DELAY ...@@ -56,9 +56,6 @@ config GENERIC_CALIBRATE_DELAY
bool bool
default y default y
config GENERIC_GPIO
bool
config ZONE_DMA config ZONE_DMA
bool bool
default y default y
......
...@@ -107,9 +107,6 @@ config MIGHT_HAVE_PCI ...@@ -107,9 +107,6 @@ config MIGHT_HAVE_PCI
config SYS_SUPPORTS_APM_EMULATION config SYS_SUPPORTS_APM_EMULATION
bool bool
config GENERIC_GPIO
bool
config HAVE_TCM config HAVE_TCM
bool bool
select GENERIC_ALLOCATOR select GENERIC_ALLOCATOR
......
...@@ -150,7 +150,7 @@ orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) ...@@ -150,7 +150,7 @@ orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode)
} }
/* /*
* GENERIC_GPIO primitives. * GPIO primitives.
*/ */
static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) static int orion_gpio_request(struct gpio_chip *chip, unsigned pin)
{ {
......
...@@ -92,9 +92,6 @@ config SWIOTLB ...@@ -92,9 +92,6 @@ config SWIOTLB
config IOMMU_HELPER config IOMMU_HELPER
def_bool SWIOTLB def_bool SWIOTLB
config GENERIC_GPIO
bool
source "init/Kconfig" source "init/Kconfig"
source "kernel/Kconfig.freezer" source "kernel/Kconfig.freezer"
......
...@@ -26,9 +26,6 @@ config AVR32 ...@@ -26,9 +26,6 @@ config AVR32
There is an AVR32 Linux project with a web page at There is an AVR32 Linux project with a web page at
http://avr32linux.org/. http://avr32linux.org/.
config GENERIC_GPIO
def_bool n
config STACKTRACE_SUPPORT config STACKTRACE_SUPPORT
def_bool y def_bool y
......
...@@ -55,9 +55,6 @@ config GENERIC_BUG ...@@ -55,9 +55,6 @@ config GENERIC_BUG
config ZONE_DMA config ZONE_DMA
def_bool y def_bool y
config GENERIC_GPIO
def_bool n
config FORCE_MAX_ZONEORDER config FORCE_MAX_ZONEORDER
int int
default "14" default "14"
......
...@@ -170,9 +170,6 @@ source "mm/Kconfig" ...@@ -170,9 +170,6 @@ source "mm/Kconfig"
source "kernel/Kconfig.hz" source "kernel/Kconfig.hz"
config GENERIC_GPIO
def_bool n
endmenu endmenu
source "init/Kconfig" source "init/Kconfig"
......
...@@ -101,9 +101,6 @@ config GENERIC_CALIBRATE_DELAY ...@@ -101,9 +101,6 @@ config GENERIC_CALIBRATE_DELAY
config HAVE_SETUP_PER_CPU_AREA config HAVE_SETUP_PER_CPU_AREA
def_bool y def_bool y
config GENERIC_GPIO
bool
config DMI config DMI
bool bool
default y default y
......
...@@ -35,9 +35,6 @@ config ARCH_HAS_ILOG2_U32 ...@@ -35,9 +35,6 @@ config ARCH_HAS_ILOG2_U32
config ARCH_HAS_ILOG2_U64 config ARCH_HAS_ILOG2_U64
bool bool
config GENERIC_GPIO
bool
config GENERIC_HWEIGHT config GENERIC_HWEIGHT
bool bool
default y default y
......
...@@ -54,9 +54,6 @@ config GENERIC_HWEIGHT ...@@ -54,9 +54,6 @@ config GENERIC_HWEIGHT
config GENERIC_CALIBRATE_DELAY config GENERIC_CALIBRATE_DELAY
def_bool y def_bool y
config GENERIC_GPIO
def_bool n
config NO_IOPORT config NO_IOPORT
def_bool y def_bool y
......
...@@ -56,9 +56,6 @@ config GENERIC_HWEIGHT ...@@ -56,9 +56,6 @@ config GENERIC_HWEIGHT
config GENERIC_CALIBRATE_DELAY config GENERIC_CALIBRATE_DELAY
def_bool y def_bool y
config GENERIC_GPIO
bool
config GENERIC_CSUM config GENERIC_CSUM
def_bool y def_bool y
......
...@@ -1004,9 +1004,6 @@ config GENERIC_ISA_DMA_SUPPORT_BROKEN ...@@ -1004,9 +1004,6 @@ config GENERIC_ISA_DMA_SUPPORT_BROKEN
config ISA_DMA_API config ISA_DMA_API
bool bool
config GENERIC_GPIO
bool
config HOLES_IN_ZONE config HOLES_IN_ZONE
bool bool
......
...@@ -44,9 +44,6 @@ config GENERIC_HWEIGHT ...@@ -44,9 +44,6 @@ config GENERIC_HWEIGHT
config NO_IOPORT config NO_IOPORT
def_bool y def_bool y
config GENERIC_GPIO
def_bool n
config TRACE_IRQFLAGS_SUPPORT config TRACE_IRQFLAGS_SUPPORT
def_bool y def_bool y
......
...@@ -82,11 +82,6 @@ config GENERIC_HWEIGHT ...@@ -82,11 +82,6 @@ config GENERIC_HWEIGHT
bool bool
default y default y
config GENERIC_GPIO
bool
help
Generic GPIO API support
config PPC config PPC
bool bool
default y default y
......
...@@ -92,9 +92,6 @@ config GENERIC_CSUM ...@@ -92,9 +92,6 @@ config GENERIC_CSUM
config GENERIC_HWEIGHT config GENERIC_HWEIGHT
def_bool y def_bool y
config GENERIC_GPIO
def_bool n
config GENERIC_CALIBRATE_DELAY config GENERIC_CALIBRATE_DELAY
bool bool
......
...@@ -135,11 +135,6 @@ config GENERIC_ISA_DMA ...@@ -135,11 +135,6 @@ config GENERIC_ISA_DMA
bool bool
default y if SPARC32 default y if SPARC32
config GENERIC_GPIO
bool
help
Generic GPIO API support
config ARCH_SUPPORTS_DEBUG_PAGEALLOC config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64 def_bool y if SPARC64
......
...@@ -23,9 +23,6 @@ config UNICORE32 ...@@ -23,9 +23,6 @@ config UNICORE32
designs licensed by PKUnity Ltd. designs licensed by PKUnity Ltd.
Please see web page at <http://www.pkunity.com/>. Please see web page at <http://www.pkunity.com/>.
config GENERIC_GPIO
bool
config GENERIC_CSUM config GENERIC_CSUM
def_bool y def_bool y
......
...@@ -172,9 +172,6 @@ config GENERIC_BUG_RELATIVE_POINTERS ...@@ -172,9 +172,6 @@ config GENERIC_BUG_RELATIVE_POINTERS
config GENERIC_HWEIGHT config GENERIC_HWEIGHT
def_bool y def_bool y
config GENERIC_GPIO
bool
config ARCH_MAY_HAVE_PC_FDC config ARCH_MAY_HAVE_PC_FDC
def_bool y def_bool y
depends on ISA_DMA_API depends on ISA_DMA_API
......
...@@ -33,9 +33,6 @@ config RWSEM_XCHGADD_ALGORITHM ...@@ -33,9 +33,6 @@ config RWSEM_XCHGADD_ALGORITHM
config GENERIC_HWEIGHT config GENERIC_HWEIGHT
def_bool y def_bool y
config GENERIC_GPIO
bool
config ARCH_HAS_ILOG2_U32 config ARCH_HAS_ILOG2_U32
def_bool n def_bool n
......
...@@ -38,7 +38,6 @@ config GPIO_DEVRES ...@@ -38,7 +38,6 @@ config GPIO_DEVRES
menuconfig GPIOLIB menuconfig GPIOLIB
bool "GPIO Support" bool "GPIO Support"
depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
select GENERIC_GPIO
help help
This enables GPIO support through the generic GPIO library. This enables GPIO support through the generic GPIO library.
You only need to enable this, if you also want to enable You only need to enable this, if you also want to enable
......
...@@ -255,7 +255,7 @@ static int __get_gpo_state_p3(struct lpc32xx_gpio_chip *group, ...@@ -255,7 +255,7 @@ static int __get_gpo_state_p3(struct lpc32xx_gpio_chip *group,
} }
/* /*
* GENERIC_GPIO primitives. * GPIO primitives.
*/ */
static int lpc32xx_gpio_dir_input_p012(struct gpio_chip *chip, static int lpc32xx_gpio_dir_input_p012(struct gpio_chip *chip,
unsigned pin) unsigned pin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment