Skip to content

Commit

Permalink
gpio: Move DT support code into drivers/gpio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
glikely committed Apr 7, 2012
1 parent 93baa65 commit f141ed6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ menuconfig GPIOLIB

if GPIOLIB

config OF_GPIO
def_bool y
depends on OF && !SPARC

config DEBUG_GPIO
bool "Debug GPIO calls"
depends on DEBUG_KERNEL
Expand Down
1 change: 1 addition & 0 deletions drivers/gpio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG

obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o
obj-$(CONFIG_OF_GPIO) += gpiolib-of.o

# Device drivers. Generally keep list sorted alphabetically
obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions drivers/of/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ config OF_IRQ
config OF_DEVICE
def_bool y

config OF_GPIO
def_bool y
depends on GPIOLIB && !SPARC
help
OpenFirmware GPIO accessors

config OF_I2C
def_tristate I2C
depends on I2C && !SPARC
Expand Down
1 change: 0 additions & 1 deletion drivers/of/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o
obj-$(CONFIG_OF_ADDRESS) += address.o
obj-$(CONFIG_OF_IRQ) += irq.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_NET) += of_net.o
obj-$(CONFIG_OF_SPI) += of_spi.o
Expand Down

0 comments on commit f141ed6

Please sign in to comment.