]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: Move DT support code into drivers/gpio
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 7 Apr 2012 20:31:33 +0000 (14:31 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 7 Apr 2012 20:35:28 +0000 (14:35 -0600)
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>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpiolib-of.c [moved from drivers/of/gpio.c with 100% similarity]
drivers/of/Kconfig
drivers/of/Makefile

index e6862f1340848f4344e314740e3f33beb5f09ddd..1042c3f534f479d26ed6e768fb727dfe769606e7 100644 (file)
@@ -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
index 007f54bd0081203dcf04ec775254b6b72c8d422f..1c2f6c0a835ec8d5d88646e8b52af44de0264220 100644 (file)
@@ -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
similarity index 100%
rename from drivers/of/gpio.c
rename to drivers/gpio/gpiolib-of.c
index 8e84ce9765a9257a8429cd33838ab7e4bbd8fb15..ce00d11144de3e92ca66ec285681252835dcadaa 100644 (file)
@@ -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
index aa90e602c8a7e5dfbe66770edf8e85dadcc27173..aff2c62303907529ae88a3fd2a61b2f6af214b76 100644 (file)
@@ -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