diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-04-07 16:31:33 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-07 16:35:28 -0400 |
commit | f141ed65f256ec036c7fba604da6b7c448096ef9 (patch) | |
tree | b94001a7818a860aabfdd35b2867313fb07e114e | |
parent | 93baa65fe50a83056c97973de2300337b000472e (diff) |
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>
-rw-r--r-- | drivers/gpio/Kconfig | 4 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpio/gpiolib-of.c (renamed from drivers/of/gpio.c) | 0 | ||||
-rw-r--r-- | drivers/of/Kconfig | 6 | ||||
-rw-r--r-- | drivers/of/Makefile | 1 |
5 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index e6862f134084..1042c3f534f4 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -37,6 +37,10 @@ menuconfig GPIOLIB | |||
37 | 37 | ||
38 | if GPIOLIB | 38 | if GPIOLIB |
39 | 39 | ||
40 | config OF_GPIO | ||
41 | def_bool y | ||
42 | depends on OF && !SPARC | ||
43 | |||
40 | config DEBUG_GPIO | 44 | config DEBUG_GPIO |
41 | bool "Debug GPIO calls" | 45 | bool "Debug GPIO calls" |
42 | depends on DEBUG_KERNEL | 46 | depends on DEBUG_KERNEL |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 007f54bd0081..1c2f6c0a835e 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -3,6 +3,7 @@ | |||
3 | ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG | 3 | ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG |
4 | 4 | ||
5 | obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o | 5 | obj-$(CONFIG_GPIOLIB) += gpiolib.o devres.o |
6 | obj-$(CONFIG_OF_GPIO) += gpiolib-of.o | ||
6 | 7 | ||
7 | # Device drivers. Generally keep list sorted alphabetically | 8 | # Device drivers. Generally keep list sorted alphabetically |
8 | obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o | 9 | obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o |
diff --git a/drivers/of/gpio.c b/drivers/gpio/gpiolib-of.c index bba81216b4db..bba81216b4db 100644 --- a/drivers/of/gpio.c +++ b/drivers/gpio/gpiolib-of.c | |||
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 8e84ce9765a9..ce00d11144de 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig | |||
@@ -51,12 +51,6 @@ config OF_IRQ | |||
51 | config OF_DEVICE | 51 | config OF_DEVICE |
52 | def_bool y | 52 | def_bool y |
53 | 53 | ||
54 | config OF_GPIO | ||
55 | def_bool y | ||
56 | depends on GPIOLIB && !SPARC | ||
57 | help | ||
58 | OpenFirmware GPIO accessors | ||
59 | |||
60 | config OF_I2C | 54 | config OF_I2C |
61 | def_tristate I2C | 55 | def_tristate I2C |
62 | depends on I2C && !SPARC | 56 | depends on I2C && !SPARC |
diff --git a/drivers/of/Makefile b/drivers/of/Makefile index aa90e602c8a7..aff2c6230390 100644 --- a/drivers/of/Makefile +++ b/drivers/of/Makefile | |||
@@ -4,7 +4,6 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o | |||
4 | obj-$(CONFIG_OF_ADDRESS) += address.o | 4 | obj-$(CONFIG_OF_ADDRESS) += address.o |
5 | obj-$(CONFIG_OF_IRQ) += irq.o | 5 | obj-$(CONFIG_OF_IRQ) += irq.o |
6 | obj-$(CONFIG_OF_DEVICE) += device.o platform.o | 6 | obj-$(CONFIG_OF_DEVICE) += device.o platform.o |
7 | obj-$(CONFIG_OF_GPIO) += gpio.o | ||
8 | obj-$(CONFIG_OF_I2C) += of_i2c.o | 7 | obj-$(CONFIG_OF_I2C) += of_i2c.o |
9 | obj-$(CONFIG_OF_NET) += of_net.o | 8 | obj-$(CONFIG_OF_NET) += of_net.o |
10 | obj-$(CONFIG_OF_SPI) += of_spi.o | 9 | obj-$(CONFIG_OF_SPI) += of_spi.o |