diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2012-03-29 11:41:01 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-29 11:41:01 -0400 |
commit | 46a0a5402f7b477bc98bf26596c2234f2ddbf473 (patch) | |
tree | a42f80deeecb3d59b2fa771c1ab031c68307f7b2 /arch/arm/mach-omap1/board-h2.c | |
parent | a26d3c4fcd4bb875ae5adc32f27fab7a478bb00d (diff) |
ARM: OMAP: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()
The following commits change gpio-omap to use dynamic
IRQ allocation:
25db711 gpio/omap: Fix IRQ handling for SPARSE_IRQ
384ebe1 gpio/omap: Add DT support to GPIO driver
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ
is no longer valid. We must be using gpio_to_irq() instead.
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
[tony@atomide.com: updated comments]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-h2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 03e0050a8961..3768088fa5cc 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -244,8 +244,6 @@ static struct resource h2_smc91x_resources[] = { | |||
244 | .flags = IORESOURCE_MEM, | 244 | .flags = IORESOURCE_MEM, |
245 | }, | 245 | }, |
246 | [1] = { | 246 | [1] = { |
247 | .start = OMAP_GPIO_IRQ(0), | ||
248 | .end = OMAP_GPIO_IRQ(0), | ||
249 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, | 247 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
250 | }, | 248 | }, |
251 | }; | 249 | }; |
@@ -364,11 +362,9 @@ static struct tps65010_board tps_board = { | |||
364 | static struct i2c_board_info __initdata h2_i2c_board_info[] = { | 362 | static struct i2c_board_info __initdata h2_i2c_board_info[] = { |
365 | { | 363 | { |
366 | I2C_BOARD_INFO("tps65010", 0x48), | 364 | I2C_BOARD_INFO("tps65010", 0x48), |
367 | .irq = OMAP_GPIO_IRQ(58), | ||
368 | .platform_data = &tps_board, | 365 | .platform_data = &tps_board, |
369 | }, { | 366 | }, { |
370 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 367 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
371 | .irq = OMAP_GPIO_IRQ(2), | ||
372 | }, | 368 | }, |
373 | }; | 369 | }; |
374 | 370 | ||
@@ -437,10 +433,14 @@ static void __init h2_init(void) | |||
437 | omap_cfg_reg(E19_1610_KBR4); | 433 | omap_cfg_reg(E19_1610_KBR4); |
438 | omap_cfg_reg(N19_1610_KBR5); | 434 | omap_cfg_reg(N19_1610_KBR5); |
439 | 435 | ||
436 | h2_smc91x_resources[1].start = gpio_to_irq(0); | ||
437 | h2_smc91x_resources[1].end = gpio_to_irq(0); | ||
440 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); | 438 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); |
441 | omap_board_config = h2_config; | 439 | omap_board_config = h2_config; |
442 | omap_board_config_size = ARRAY_SIZE(h2_config); | 440 | omap_board_config_size = ARRAY_SIZE(h2_config); |
443 | omap_serial_init(); | 441 | omap_serial_init(); |
442 | h2_i2c_board_info[0].irq = gpio_to_irq(58); | ||
443 | h2_i2c_board_info[1].irq = gpio_to_irq(2); | ||
444 | omap_register_i2c_bus(1, 100, h2_i2c_board_info, | 444 | omap_register_i2c_bus(1, 100, h2_i2c_board_info, |
445 | ARRAY_SIZE(h2_i2c_board_info)); | 445 | ARRAY_SIZE(h2_i2c_board_info)); |
446 | omap1_usb_init(&h2_usb_config); | 446 | omap1_usb_init(&h2_usb_config); |