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-zoom-peripherals.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-zoom-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-peripherals.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index c126461836ac..a489f82b1815 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -193,7 +193,6 @@ static struct platform_device omap_vwlan_device = { | |||
193 | }; | 193 | }; |
194 | 194 | ||
195 | static struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { | 195 | static struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { |
196 | .irq = OMAP_GPIO_IRQ(OMAP_ZOOM_WLAN_IRQ_GPIO), | ||
197 | /* ZOOM ref clock is 26 MHz */ | 196 | /* ZOOM ref clock is 26 MHz */ |
198 | .board_ref_clock = 1, | 197 | .board_ref_clock = 1, |
199 | }; | 198 | }; |
@@ -296,7 +295,10 @@ static void enable_board_wakeup_source(void) | |||
296 | 295 | ||
297 | void __init zoom_peripherals_init(void) | 296 | void __init zoom_peripherals_init(void) |
298 | { | 297 | { |
299 | int ret = wl12xx_set_platform_data(&omap_zoom_wlan_data); | 298 | int ret; |
299 | |||
300 | omap_zoom_wlan_data.irq = gpio_to_irq(OMAP_ZOOM_WLAN_IRQ_GPIO); | ||
301 | ret = wl12xx_set_platform_data(&omap_zoom_wlan_data); | ||
300 | 302 | ||
301 | if (ret) | 303 | if (ret) |
302 | pr_err("error setting wl12xx data: %d\n", ret); | 304 | pr_err("error setting wl12xx data: %d\n", ret); |