mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
gpio: Move DT support code into drivers/gpio
The code in drivers/of/gpio.c isn't shared by any other subsystem since it is all gpiolib specific. drivers/gpio is a better place to maintain these functions. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Rob Herring <rob.herring@calxeda.com> Cc: Linus Walleij <linus.walleij@stericsson.com>
This commit is contained in:
parent
93baa65fe5
commit
f141ed65f2
@ -37,6 +37,10 @@ menuconfig GPIOLIB
|
|||||||
|
|
||||||
if GPIOLIB
|
if GPIOLIB
|
||||||
|
|
||||||
|
config OF_GPIO
|
||||||
|
def_bool y
|
||||||
|
depends on OF && !SPARC
|
||||||
|
|
||||||
config DEBUG_GPIO
|
config DEBUG_GPIO
|
||||||
bool "Debug GPIO calls"
|
bool "Debug GPIO calls"
|
||||||
depends on DEBUG_KERNEL
|
depends on DEBUG_KERNEL
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG
|
ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG
|
||||||
|
|
||||||
obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o
|
obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o
|
||||||
|
obj-$(CONFIG_OF_GPIO) += gpiolib-of.o
|
||||||
|
|
||||||
# Device drivers. Generally keep list sorted alphabetically
|
# Device drivers. Generally keep list sorted alphabetically
|
||||||
obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
|
obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
|
||||||
|
@ -51,12 +51,6 @@ config OF_IRQ
|
|||||||
config OF_DEVICE
|
config OF_DEVICE
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
config OF_GPIO
|
|
||||||
def_bool y
|
|
||||||
depends on GPIOLIB && !SPARC
|
|
||||||
help
|
|
||||||
OpenFirmware GPIO accessors
|
|
||||||
|
|
||||||
config OF_I2C
|
config OF_I2C
|
||||||
def_tristate I2C
|
def_tristate I2C
|
||||||
depends on I2C && !SPARC
|
depends on I2C && !SPARC
|
||||||
|
@ -4,7 +4,6 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o
|
|||||||
obj-$(CONFIG_OF_ADDRESS) += address.o
|
obj-$(CONFIG_OF_ADDRESS) += address.o
|
||||||
obj-$(CONFIG_OF_IRQ) += irq.o
|
obj-$(CONFIG_OF_IRQ) += irq.o
|
||||||
obj-$(CONFIG_OF_DEVICE) += device.o platform.o
|
obj-$(CONFIG_OF_DEVICE) += device.o platform.o
|
||||||
obj-$(CONFIG_OF_GPIO) += gpio.o
|
|
||||||
obj-$(CONFIG_OF_I2C) += of_i2c.o
|
obj-$(CONFIG_OF_I2C) += of_i2c.o
|
||||||
obj-$(CONFIG_OF_NET) += of_net.o
|
obj-$(CONFIG_OF_NET) += of_net.o
|
||||||
obj-$(CONFIG_OF_SPI) += of_spi.o
|
obj-$(CONFIG_OF_SPI) += of_spi.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user