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-omap2/board-devkit8000.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-omap2/board-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index e873063f4fda..87cdb862356a 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -410,7 +410,6 @@ static struct resource omap_dm9000_resources[] = { | |||
410 | .flags = IORESOURCE_MEM, | 410 | .flags = IORESOURCE_MEM, |
411 | }, | 411 | }, |
412 | [2] = { | 412 | [2] = { |
413 | .start = OMAP_GPIO_IRQ(OMAP_DM9000_GPIO_IRQ), | ||
414 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, | 413 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, |
415 | }, | 414 | }, |
416 | }; | 415 | }; |
@@ -637,6 +636,7 @@ static void __init devkit8000_init(void) | |||
637 | omap_dm9000_init(); | 636 | omap_dm9000_init(); |
638 | 637 | ||
639 | devkit8000_i2c_init(); | 638 | devkit8000_i2c_init(); |
639 | omap_dm9000_resources[2].start = gpio_to_irq(OMAP_DM9000_GPIO_IRQ); | ||
640 | platform_add_devices(devkit8000_devices, | 640 | platform_add_devices(devkit8000_devices, |
641 | ARRAY_SIZE(devkit8000_devices)); | 641 | ARRAY_SIZE(devkit8000_devices)); |
642 | 642 | ||