Skip to content

Commit a940d9a

Browse files
committed
ARM: OMAP2+: Remove hardcoded twl4030 gpio_base, irq_base and irq_end
We can't use hardcoded interrupts for SPARSE_IRQ, and can replace the hardcoded gpio_base with twl_gpiochip.base after it's been allocated. Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 714df7b commit a940d9a

21 files changed

Lines changed: 10 additions & 59 deletions

‎arch/arm/mach-omap2/board-2430sdp.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ static struct regulator_init_data sdp2430_vmmc1 = {
211211
};
212212

213213
static struct twl4030_gpio_platform_data sdp2430_gpio_data = {
214-
.gpio_base = OMAP_MAX_GPIO_LINES,
215-
.irq_base = TWL4030_GPIO_IRQ_BASE,
216-
.irq_end = TWL4030_GPIO_IRQ_END,
217214
};
218215

219216
static struct twl4030_platform_data sdp2430_twldata = {

‎arch/arm/mach-omap2/board-3430sdp.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ static int sdp3430_twl_gpio_setup(struct device *dev,
229229
}
230230

231231
static struct twl4030_gpio_platform_data sdp3430_gpio_data = {
232-
.gpio_base = OMAP_MAX_GPIO_LINES,
233-
.irq_base = TWL4030_GPIO_IRQ_BASE,
234-
.irq_end = TWL4030_GPIO_IRQ_END,
235232
.pulldowns = BIT(2) | BIT(6) | BIT(8) | BIT(13)
236233
| BIT(16) | BIT(17),
237234
.setup = sdp3430_twl_gpio_setup,

‎arch/arm/mach-omap2/board-4430sdp.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ static struct twl6040_platform_data twl6040_data = {
543543
.codec = &twl6040_codec,
544544
.vibra = &twl6040_vibra,
545545
.audpwron_gpio = 127,
546-
.irq_base = TWL6040_CODEC_IRQ_BASE,
547546
};
548547

549548
static struct twl4030_platform_data sdp4430_twldata = {

‎arch/arm/mach-omap2/board-cm-t35.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,6 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
469469
}
470470

471471
static struct twl4030_gpio_platform_data cm_t35_gpio_data = {
472-
.gpio_base = OMAP_MAX_GPIO_LINES,
473-
.irq_base = TWL4030_GPIO_IRQ_BASE,
474-
.irq_end = TWL4030_GPIO_IRQ_END,
475472
.setup = cm_t35_twl_gpio_setup,
476473
};
477474

‎arch/arm/mach-omap2/board-devkit8000.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,6 @@ static int devkit8000_twl_gpio_setup(struct device *dev,
235235
}
236236

237237
static struct twl4030_gpio_platform_data devkit8000_gpio_data = {
238-
.gpio_base = OMAP_MAX_GPIO_LINES,
239-
.irq_base = TWL4030_GPIO_IRQ_BASE,
240-
.irq_end = TWL4030_GPIO_IRQ_END,
241238
.use_leds = true,
242239
.pulldowns = BIT(1) | BIT(2) | BIT(6) | BIT(8) | BIT(13)
243240
| BIT(15) | BIT(16) | BIT(17),

‎arch/arm/mach-omap2/board-igep0020.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,6 @@ static int igep_twl_gpio_setup(struct device *dev,
424424
};
425425

426426
static struct twl4030_gpio_platform_data igep_twl4030_gpio_pdata = {
427-
.gpio_base = OMAP_MAX_GPIO_LINES,
428-
.irq_base = TWL4030_GPIO_IRQ_BASE,
429-
.irq_end = TWL4030_GPIO_IRQ_END,
430427
.use_leds = true,
431428
.setup = igep_twl_gpio_setup,
432429
};

‎arch/arm/mach-omap2/board-ldp.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ static int ldp_twl_gpio_setup(struct device *dev, unsigned gpio, unsigned ngpio)
274274
}
275275

276276
static struct twl4030_gpio_platform_data ldp_gpio_data = {
277-
.gpio_base = OMAP_MAX_GPIO_LINES,
278-
.irq_base = TWL4030_GPIO_IRQ_BASE,
279-
.irq_end = TWL4030_GPIO_IRQ_END,
280277
.setup = ldp_twl_gpio_setup,
281278
};
282279

‎arch/arm/mach-omap2/board-omap3beagle.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,6 @@ static int beagle_twl_gpio_setup(struct device *dev,
296296
}
297297

298298
static struct twl4030_gpio_platform_data beagle_gpio_data = {
299-
.gpio_base = OMAP_MAX_GPIO_LINES,
300-
.irq_base = TWL4030_GPIO_IRQ_BASE,
301-
.irq_end = TWL4030_GPIO_IRQ_END,
302299
.use_leds = true,
303300
.pullups = BIT(1),
304301
.pulldowns = BIT(2) | BIT(6) | BIT(7) | BIT(8) | BIT(13)

‎arch/arm/mach-omap2/board-omap3evm.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,6 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
388388
}
389389

390390
static struct twl4030_gpio_platform_data omap3evm_gpio_data = {
391-
.gpio_base = OMAP_MAX_GPIO_LINES,
392-
.irq_base = TWL4030_GPIO_IRQ_BASE,
393-
.irq_end = TWL4030_GPIO_IRQ_END,
394391
.use_leds = true,
395392
.setup = omap3evm_twl_gpio_setup,
396393
};

‎arch/arm/mach-omap2/board-omap3logic.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ static struct regulator_init_data omap3logic_vmmc1 = {
7777
};
7878

7979
static struct twl4030_gpio_platform_data omap3logic_gpio_data = {
80-
.gpio_base = OMAP_MAX_GPIO_LINES,
81-
.irq_base = TWL4030_GPIO_IRQ_BASE,
82-
.irq_end = TWL4030_GPIO_IRQ_END,
8380
.use_leds = true,
8481
.pullups = BIT(1),
8582
.pulldowns = BIT(2) | BIT(6) | BIT(7) | BIT(8)

0 commit comments

Comments
 (0)