aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/gpio7xx.c
diff options
context:
space:
mode:
authorCharulatha V <charu@ti.com>2011-08-30 14:32:21 -0400
committerTarun Kanti DebBarma <tarun.kanti@ti.com>2012-02-06 03:43:43 -0500
commitd0d665a896c5b9a0aa60e8bac15c270cb59aa9e7 (patch)
treede66912f404bbf0987427e4b0bfc772ebb963e3e /arch/arm/mach-omap1/gpio7xx.c
parentd3901eaf1fc289e8175faa8c7c460d542b6eb7dd (diff)
gpio/omap: remove bank->method & METHOD_* macros
The only bank->type (method) used in the OMAP GPIO driver is MPUIO type as they need to be handled separately. Identify the same using a flag and remove all METHOD_* macros. mpuio_init() function is defined under #ifdefs. It is required only in case of MPUIO bank type and only when PM operations are supported by it. This is applicable only in case of OMAP16xx SoC's MPUIO GPIO bank type. For all the other cases it is a dummy function. Hence clean up the same and remove all the OMAP SoC specific #ifdefs. Signed-off-by: Charulatha V <charu@ti.com> Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap1/gpio7xx.c')
-rw-r--r--arch/arm/mach-omap1/gpio7xx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/gpio7xx.c b/arch/arm/mach-omap1/gpio7xx.c
index 207a23cfa1a0..433491cb73fa 100644
--- a/arch/arm/mach-omap1/gpio7xx.c
+++ b/arch/arm/mach-omap1/gpio7xx.c
@@ -52,8 +52,8 @@ static struct omap_gpio_reg_offs omap7xx_mpuio_regs = {
52 52
53static struct __initdata omap_gpio_platform_data omap7xx_mpu_gpio_config = { 53static struct __initdata omap_gpio_platform_data omap7xx_mpu_gpio_config = {
54 .virtual_irq_start = IH_MPUIO_BASE, 54 .virtual_irq_start = IH_MPUIO_BASE,
55 .bank_type = METHOD_MPUIO,
56 .bank_width = 32, 55 .bank_width = 32,
56 .is_mpuio = true,
57 .bank_stride = 2, 57 .bank_stride = 2,
58 .regs = &omap7xx_mpuio_regs, 58 .regs = &omap7xx_mpuio_regs,
59}; 59};
@@ -94,7 +94,6 @@ static struct omap_gpio_reg_offs omap7xx_gpio_regs = {
94 94
95static struct __initdata omap_gpio_platform_data omap7xx_gpio1_config = { 95static struct __initdata omap_gpio_platform_data omap7xx_gpio1_config = {
96 .virtual_irq_start = IH_GPIO_BASE, 96 .virtual_irq_start = IH_GPIO_BASE,
97 .bank_type = METHOD_GPIO_7XX,
98 .bank_width = 32, 97 .bank_width = 32,
99 .regs = &omap7xx_gpio_regs, 98 .regs = &omap7xx_gpio_regs,
100}; 99};
@@ -124,7 +123,6 @@ static struct __initdata resource omap7xx_gpio2_resources[] = {
124 123
125static struct __initdata omap_gpio_platform_data omap7xx_gpio2_config = { 124static struct __initdata omap_gpio_platform_data omap7xx_gpio2_config = {
126 .virtual_irq_start = IH_GPIO_BASE + 32, 125 .virtual_irq_start = IH_GPIO_BASE + 32,
127 .bank_type = METHOD_GPIO_7XX,
128 .bank_width = 32, 126 .bank_width = 32,
129 .regs = &omap7xx_gpio_regs, 127 .regs = &omap7xx_gpio_regs,
130}; 128};
@@ -154,7 +152,6 @@ static struct __initdata resource omap7xx_gpio3_resources[] = {
154 152
155static struct __initdata omap_gpio_platform_data omap7xx_gpio3_config = { 153static struct __initdata omap_gpio_platform_data omap7xx_gpio3_config = {
156 .virtual_irq_start = IH_GPIO_BASE + 64, 154 .virtual_irq_start = IH_GPIO_BASE + 64,
157 .bank_type = METHOD_GPIO_7XX,
158 .bank_width = 32, 155 .bank_width = 32,
159 .regs = &omap7xx_gpio_regs, 156 .regs = &omap7xx_gpio_regs,
160}; 157};
@@ -184,7 +181,6 @@ static struct __initdata resource omap7xx_gpio4_resources[] = {
184 181
185static struct __initdata omap_gpio_platform_data omap7xx_gpio4_config = { 182static struct __initdata omap_gpio_platform_data omap7xx_gpio4_config = {
186 .virtual_irq_start = IH_GPIO_BASE + 96, 183 .virtual_irq_start = IH_GPIO_BASE + 96,
187 .bank_type = METHOD_GPIO_7XX,
188 .bank_width = 32, 184 .bank_width = 32,
189 .regs = &omap7xx_gpio_regs, 185 .regs = &omap7xx_gpio_regs,
190}; 186};
@@ -214,7 +210,6 @@ static struct __initdata resource omap7xx_gpio5_resources[] = {
214 210
215static struct __initdata omap_gpio_platform_data omap7xx_gpio5_config = { 211static struct __initdata omap_gpio_platform_data omap7xx_gpio5_config = {
216 .virtual_irq_start = IH_GPIO_BASE + 128, 212 .virtual_irq_start = IH_GPIO_BASE + 128,
217 .bank_type = METHOD_GPIO_7XX,
218 .bank_width = 32, 213 .bank_width = 32,
219 .regs = &omap7xx_gpio_regs, 214 .regs = &omap7xx_gpio_regs,
220}; 215};
@@ -244,7 +239,6 @@ static struct __initdata resource omap7xx_gpio6_resources[] = {
244 239
245static struct __initdata omap_gpio_platform_data omap7xx_gpio6_config = { 240static struct __initdata omap_gpio_platform_data omap7xx_gpio6_config = {
246 .virtual_irq_start = IH_GPIO_BASE + 160, 241 .virtual_irq_start = IH_GPIO_BASE + 160,
247 .bank_type = METHOD_GPIO_7XX,
248 .bank_width = 32, 242 .bank_width = 32,
249 .regs = &omap7xx_gpio_regs, 243 .regs = &omap7xx_gpio_regs,
250}; 244};