Skip to contentSkip to conversation

gpio: ep93xx: move driver to drivers/gpio

PATCH New H Hartley Sweeten 2 participants 2 messages Jun 1, 2011 – Jun 3, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 gpio: ep93xx: move driver to drivers/gpio

The GPIO driver should reside in drivers/gpio.

Cc Ryan Mallon <[email protected]>
Cc Grant Likely <[email protected]>
Cc Russell King <[email protected]>

---

v3: Change Kconfig option to def_bool y
v2: Make the Kconfig symbol a silent option, dependent on ARCH_EP93XX

arch/arm/mach-ep93xx/Makefile +1 -1
index 33ee2c8..6b7c41d 100644
@@ -1,7 +1,7 @@
 #
 # Makefile for the linux kernel.
 #
-obj-y			:= core.o clock.o dma-m2p.o gpio.o
+obj-y			:= core.o clock.o dma-m2p.o
 obj-m			:=
 obj-n			:=
 obj-			:=
drivers/gpio/Kconfig +4 -0
index 18c0b31..517172f 100644
@@ -86,6 +86,10 @@ config GPIO_IT8761E
 	help
 	  Say yes here to support GPIO functionality of IT8761E super I/O chip.
 
+config GPIO_EP93XX
+	def_bool y
+	depends on ARCH_EP93XX
+
 config GPIO_EXYNOS4
 	bool "Samsung Exynos4 GPIO library support"
 	default y
drivers/gpio/Makefile +1 -0
index 4ac7cb3..c8faabe 100644
@@ -8,6 +8,7 @@ obj-$(CONFIG_GPIO_ADP5520)	+= adp5520-gpio.o
 obj-$(CONFIG_GPIO_ADP5588)	+= adp5588-gpio.o
 obj-$(CONFIG_GPIO_BASIC_MMIO_CORE)	+= basic_mmio_gpio.o
 obj-$(CONFIG_GPIO_BASIC_MMIO)	+= basic_mmio_gpio.o
+obj-$(CONFIG_GPIO_EP93XX)	+= gpio-ep93xx.o
 obj-$(CONFIG_GPIO_EXYNOS4)	+= gpio-exynos4.o
 obj-$(CONFIG_GPIO_I801)		+= gpio-i801.o
 obj-$(CONFIG_GPIO_PLAT_SAMSUNG)	+= gpio-plat-samsung.o
drivers/gpio/gpio-ep93xx.c renamed from arch/arm/mach-ep93xx/gpio.c +0 -0
similarity index 100%
rename from arch/arm/mach-ep93xx/gpio.c
rename to drivers/gpio/gpio-ep93xx.c
Applied
#1 lore raw

PATCH v3 1/1 gpio: ep93xx: move driver to drivers/gpio

Quoted 7 lines · H Hartley Sweeten

The GPIO driver should reside in drivers/gpio.

Cc Ryan Mallon <[email protected]>
Cc Grant Likely <[email protected]>
Cc Russell King <[email protected]>

Applied, thanks...

Quoted 4 lines

---

v3: Change Kconfig option to def_bool y
v2: Make the Kconfig symbol a silent option, dependent on ARCH_EP93XX

BTW, please put the patch changelog above the s-o-b list in future patches. It's helpful to include that information in the upstream commit.

g.

Quoted 45 lines
arch/arm/mach-ep93xx/Makefile +1 -1
index 33ee2c8..6b7c41d 100644
@@ -1,7 +1,7 @@
 #
 # Makefile for the linux kernel.
 #
-obj-y			:= core.o clock.o dma-m2p.o gpio.o
+obj-y			:= core.o clock.o dma-m2p.o
 obj-m			:=
 obj-n			:=
 obj-			:=
drivers/gpio/Kconfig +4 -0
index 18c0b31..517172f 100644
@@ -86,6 +86,10 @@ config GPIO_IT8761E
 	help
 	  Say yes here to support GPIO functionality of IT8761E super I/O chip.
 
+config GPIO_EP93XX
+	def_bool y
+	depends on ARCH_EP93XX
+
 config GPIO_EXYNOS4
 	bool "Samsung Exynos4 GPIO library support"
 	default y
drivers/gpio/Makefile +1 -0
index 4ac7cb3..c8faabe 100644
@@ -8,6 +8,7 @@ obj-$(CONFIG_GPIO_ADP5520)	+= adp5520-gpio.o
 obj-$(CONFIG_GPIO_ADP5588)	+= adp5588-gpio.o
 obj-$(CONFIG_GPIO_BASIC_MMIO_CORE)	+= basic_mmio_gpio.o
 obj-$(CONFIG_GPIO_BASIC_MMIO)	+= basic_mmio_gpio.o
+obj-$(CONFIG_GPIO_EP93XX)	+= gpio-ep93xx.o
 obj-$(CONFIG_GPIO_EXYNOS4)	+= gpio-exynos4.o
 obj-$(CONFIG_GPIO_I801)		+= gpio-i801.o
 obj-$(CONFIG_GPIO_PLAT_SAMSUNG)	+= gpio-plat-samsung.o
drivers/gpio/gpio-ep93xx.c renamed from arch/arm/mach-ep93xx/gpio.c +0 -0
similarity index 100%
rename from arch/arm/mach-ep93xx/gpio.c
rename to drivers/gpio/gpio-ep93xx.c