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_IRQ384ebe1
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>
This commit is contained in:

committed by
Tony Lindgren

parent
a26d3c4fcd
commit
46a0a5402f
@@ -199,7 +199,6 @@ static struct platform_device omap_vwlan_device = {
|
||||
};
|
||||
|
||||
struct wl12xx_platform_data omap_panda_wlan_data __initdata = {
|
||||
.irq = OMAP_GPIO_IRQ(GPIO_WIFI_IRQ),
|
||||
/* PANDA ref clock is 38.4 MHz */
|
||||
.board_ref_clock = 2,
|
||||
};
|
||||
@@ -494,6 +493,7 @@ static void __init omap4_panda_init(void)
|
||||
package = OMAP_PACKAGE_CBL;
|
||||
omap4_mux_init(board_mux, NULL, package);
|
||||
|
||||
omap_panda_wlan_data.irq = gpio_to_irq(GPIO_WIFI_IRQ);
|
||||
ret = wl12xx_set_platform_data(&omap_panda_wlan_data);
|
||||
if (ret)
|
||||
pr_err("error setting wl12xx data: %d\n", ret);
|
||||
|
Reference in New Issue
Block a user