diff options
21 files changed, 47 insertions, 46 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); |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index f304fe211b1a..09e85824be03 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -246,8 +246,6 @@ static struct resource smc91x_resources[] = { | |||
246 | .flags = IORESOURCE_MEM, | 246 | .flags = IORESOURCE_MEM, |
247 | }, | 247 | }, |
248 | [1] = { | 248 | [1] = { |
249 | .start = OMAP_GPIO_IRQ(40), | ||
250 | .end = OMAP_GPIO_IRQ(40), | ||
251 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, | 249 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
252 | }, | 250 | }, |
253 | }; | 251 | }; |
@@ -337,7 +335,6 @@ static struct spi_board_info h3_spi_board_info[] __initdata = { | |||
337 | .modalias = "tsc2101", | 335 | .modalias = "tsc2101", |
338 | .bus_num = 2, | 336 | .bus_num = 2, |
339 | .chip_select = 0, | 337 | .chip_select = 0, |
340 | .irq = OMAP_GPIO_IRQ(H3_TS_GPIO), | ||
341 | .max_speed_hz = 16000000, | 338 | .max_speed_hz = 16000000, |
342 | /* .platform_data = &tsc_platform_data, */ | 339 | /* .platform_data = &tsc_platform_data, */ |
343 | }, | 340 | }, |
@@ -377,11 +374,9 @@ static struct omap_board_config_kernel h3_config[] __initdata = { | |||
377 | static struct i2c_board_info __initdata h3_i2c_board_info[] = { | 374 | static struct i2c_board_info __initdata h3_i2c_board_info[] = { |
378 | { | 375 | { |
379 | I2C_BOARD_INFO("tps65013", 0x48), | 376 | I2C_BOARD_INFO("tps65013", 0x48), |
380 | /* .irq = OMAP_GPIO_IRQ(??), */ | ||
381 | }, | 377 | }, |
382 | { | 378 | { |
383 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 379 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
384 | .irq = OMAP_GPIO_IRQ(14), | ||
385 | }, | 380 | }, |
386 | }; | 381 | }; |
387 | 382 | ||
@@ -423,12 +418,16 @@ static void __init h3_init(void) | |||
423 | omap_cfg_reg(E19_1610_KBR4); | 418 | omap_cfg_reg(E19_1610_KBR4); |
424 | omap_cfg_reg(N19_1610_KBR5); | 419 | omap_cfg_reg(N19_1610_KBR5); |
425 | 420 | ||
421 | smc91x_resources[1].start = gpio_to_irq(40); | ||
422 | smc91x_resources[1].end = gpio_to_irq(40); | ||
426 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 423 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
424 | h3_spi_board_info[0].irq = gpio_to_irq(H3_TS_GPIO); | ||
427 | spi_register_board_info(h3_spi_board_info, | 425 | spi_register_board_info(h3_spi_board_info, |
428 | ARRAY_SIZE(h3_spi_board_info)); | 426 | ARRAY_SIZE(h3_spi_board_info)); |
429 | omap_board_config = h3_config; | 427 | omap_board_config = h3_config; |
430 | omap_board_config_size = ARRAY_SIZE(h3_config); | 428 | omap_board_config_size = ARRAY_SIZE(h3_config); |
431 | omap_serial_init(); | 429 | omap_serial_init(); |
430 | h3_i2c_board_info[1].irq = gpio_to_irq(14); | ||
432 | omap_register_i2c_bus(1, 100, h3_i2c_board_info, | 431 | omap_register_i2c_bus(1, 100, h3_i2c_board_info, |
433 | ARRAY_SIZE(h3_i2c_board_info)); | 432 | ARRAY_SIZE(h3_i2c_board_info)); |
434 | omap1_usb_init(&h3_usb_config); | 433 | omap1_usb_init(&h3_usb_config); |
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index fa52d145d7b6..797bbd681564 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -323,8 +323,6 @@ static struct platform_device gpio_leds_device = { | |||
323 | 323 | ||
324 | static struct resource htcpld_resources[] = { | 324 | static struct resource htcpld_resources[] = { |
325 | [0] = { | 325 | [0] = { |
326 | .start = OMAP_GPIO_IRQ(HTCHERALD_GIRQ_BTNS), | ||
327 | .end = OMAP_GPIO_IRQ(HTCHERALD_GIRQ_BTNS), | ||
328 | .flags = IORESOURCE_IRQ, | 326 | .flags = IORESOURCE_IRQ, |
329 | }, | 327 | }, |
330 | }; | 328 | }; |
@@ -453,7 +451,6 @@ static struct spi_board_info __initdata htcherald_spi_board_info[] = { | |||
453 | { | 451 | { |
454 | .modalias = "ads7846", | 452 | .modalias = "ads7846", |
455 | .platform_data = &htcherald_ts_platform_data, | 453 | .platform_data = &htcherald_ts_platform_data, |
456 | .irq = OMAP_GPIO_IRQ(HTCHERALD_GPIO_TS), | ||
457 | .max_speed_hz = 2500000, | 454 | .max_speed_hz = 2500000, |
458 | .bus_num = 2, | 455 | .bus_num = 2, |
459 | .chip_select = 1, | 456 | .chip_select = 1, |
@@ -581,6 +578,8 @@ static void __init htcherald_init(void) | |||
581 | /* Do board initialization before we register all the devices */ | 578 | /* Do board initialization before we register all the devices */ |
582 | omap_board_config = htcherald_config; | 579 | omap_board_config = htcherald_config; |
583 | omap_board_config_size = ARRAY_SIZE(htcherald_config); | 580 | omap_board_config_size = ARRAY_SIZE(htcherald_config); |
581 | htcpld_resources[0].start = gpio_to_irq(HTCHERALD_GIRQ_BTNS); | ||
582 | htcpld_resources[0].end = gpio_to_irq(HTCHERALD_GIRQ_BTNS); | ||
584 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 583 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
585 | 584 | ||
586 | htcherald_disable_watchdog(); | 585 | htcherald_disable_watchdog(); |
@@ -588,6 +587,7 @@ static void __init htcherald_init(void) | |||
588 | htcherald_usb_enable(); | 587 | htcherald_usb_enable(); |
589 | omap1_usb_init(&htcherald_usb_config); | 588 | omap1_usb_init(&htcherald_usb_config); |
590 | 589 | ||
590 | htcherald_spi_board_info[0].irq = gpio_to_irq(HTCHERALD_GPIO_TS); | ||
591 | spi_register_board_info(htcherald_spi_board_info, | 591 | spi_register_board_info(htcherald_spi_board_info, |
592 | ARRAY_SIZE(htcherald_spi_board_info)); | 592 | ARRAY_SIZE(htcherald_spi_board_info)); |
593 | 593 | ||
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 289a6b82c5f7..315c0214eed3 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -247,8 +247,6 @@ static struct resource innovator1610_smc91x_resources[] = { | |||
247 | .flags = IORESOURCE_MEM, | 247 | .flags = IORESOURCE_MEM, |
248 | }, | 248 | }, |
249 | [1] = { | 249 | [1] = { |
250 | .start = OMAP_GPIO_IRQ(0), | ||
251 | .end = OMAP_GPIO_IRQ(0), | ||
252 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, | 250 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
253 | }, | 251 | }, |
254 | }; | 252 | }; |
@@ -412,6 +410,8 @@ static void __init innovator_init(void) | |||
412 | #endif | 410 | #endif |
413 | #ifdef CONFIG_ARCH_OMAP16XX | 411 | #ifdef CONFIG_ARCH_OMAP16XX |
414 | if (!cpu_is_omap1510()) { | 412 | if (!cpu_is_omap1510()) { |
413 | innovator1610_smc91x_resources[1].start = gpio_to_irq(0); | ||
414 | innovator1610_smc91x_resources[1].end = gpio_to_irq(0); | ||
415 | platform_add_devices(innovator1610_devices, ARRAY_SIZE(innovator1610_devices)); | 415 | platform_add_devices(innovator1610_devices, ARRAY_SIZE(innovator1610_devices)); |
416 | } | 416 | } |
417 | #endif | 417 | #endif |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index abdbdb08644f..1d8733266a83 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -147,7 +147,6 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = { | |||
147 | .bus_num = 2, | 147 | .bus_num = 2, |
148 | .chip_select = 0, | 148 | .chip_select = 0, |
149 | .max_speed_hz = 2500000, | 149 | .max_speed_hz = 2500000, |
150 | .irq = OMAP_GPIO_IRQ(15), | ||
151 | .platform_data = &nokia770_ads7846_platform_data, | 150 | .platform_data = &nokia770_ads7846_platform_data, |
152 | }, | 151 | }, |
153 | }; | 152 | }; |
@@ -242,6 +241,7 @@ static void __init omap_nokia770_init(void) | |||
242 | omap_writew((omap_readw(0xfffb5004) & ~2), 0xfffb5004); | 241 | omap_writew((omap_readw(0xfffb5004) & ~2), 0xfffb5004); |
243 | 242 | ||
244 | platform_add_devices(nokia770_devices, ARRAY_SIZE(nokia770_devices)); | 243 | platform_add_devices(nokia770_devices, ARRAY_SIZE(nokia770_devices)); |
244 | nokia770_spi_board_info[1].irq = gpio_to_irq(15); | ||
245 | spi_register_board_info(nokia770_spi_board_info, | 245 | spi_register_board_info(nokia770_spi_board_info, |
246 | ARRAY_SIZE(nokia770_spi_board_info)); | 246 | ARRAY_SIZE(nokia770_spi_board_info)); |
247 | omap_serial_init(); | 247 | omap_serial_init(); |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index e2d7ae4418f2..a0c1a1c15e75 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -128,8 +128,6 @@ static struct resource osk5912_smc91x_resources[] = { | |||
128 | .flags = IORESOURCE_MEM, | 128 | .flags = IORESOURCE_MEM, |
129 | }, | 129 | }, |
130 | [1] = { | 130 | [1] = { |
131 | .start = OMAP_GPIO_IRQ(0), | ||
132 | .end = OMAP_GPIO_IRQ(0), | ||
133 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | 131 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, |
134 | }, | 132 | }, |
135 | }; | 133 | }; |
@@ -146,8 +144,6 @@ static struct platform_device osk5912_smc91x_device = { | |||
146 | 144 | ||
147 | static struct resource osk5912_cf_resources[] = { | 145 | static struct resource osk5912_cf_resources[] = { |
148 | [0] = { | 146 | [0] = { |
149 | .start = OMAP_GPIO_IRQ(62), | ||
150 | .end = OMAP_GPIO_IRQ(62), | ||
151 | .flags = IORESOURCE_IRQ, | 147 | .flags = IORESOURCE_IRQ, |
152 | }, | 148 | }, |
153 | }; | 149 | }; |
@@ -239,7 +235,6 @@ static struct tps65010_board tps_board = { | |||
239 | static struct i2c_board_info __initdata osk_i2c_board_info[] = { | 235 | static struct i2c_board_info __initdata osk_i2c_board_info[] = { |
240 | { | 236 | { |
241 | I2C_BOARD_INFO("tps65010", 0x48), | 237 | I2C_BOARD_INFO("tps65010", 0x48), |
242 | .irq = OMAP_GPIO_IRQ(OMAP_MPUIO(1)), | ||
243 | .platform_data = &tps_board, | 238 | .platform_data = &tps_board, |
244 | 239 | ||
245 | }, | 240 | }, |
@@ -413,7 +408,6 @@ static struct spi_board_info __initdata mistral_boardinfo[] = { { | |||
413 | /* MicroWire (bus 2) CS0 has an ads7846e */ | 408 | /* MicroWire (bus 2) CS0 has an ads7846e */ |
414 | .modalias = "ads7846", | 409 | .modalias = "ads7846", |
415 | .platform_data = &mistral_ts_info, | 410 | .platform_data = &mistral_ts_info, |
416 | .irq = OMAP_GPIO_IRQ(4), | ||
417 | .max_speed_hz = 120000 /* max sample rate at 3V */ | 411 | .max_speed_hz = 120000 /* max sample rate at 3V */ |
418 | * 26 /* command + data + overhead */, | 412 | * 26 /* command + data + overhead */, |
419 | .bus_num = 2, | 413 | .bus_num = 2, |
@@ -476,6 +470,7 @@ static void __init osk_mistral_init(void) | |||
476 | gpio_direction_input(4); | 470 | gpio_direction_input(4); |
477 | irq_set_irq_type(gpio_to_irq(4), IRQ_TYPE_EDGE_FALLING); | 471 | irq_set_irq_type(gpio_to_irq(4), IRQ_TYPE_EDGE_FALLING); |
478 | 472 | ||
473 | mistral_boardinfo[0].irq = gpio_to_irq(4); | ||
479 | spi_register_board_info(mistral_boardinfo, | 474 | spi_register_board_info(mistral_boardinfo, |
480 | ARRAY_SIZE(mistral_boardinfo)); | 475 | ARRAY_SIZE(mistral_boardinfo)); |
481 | 476 | ||
@@ -547,6 +542,10 @@ static void __init osk_init(void) | |||
547 | 542 | ||
548 | osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys(); | 543 | osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys(); |
549 | osk_flash_resource.end += SZ_32M - 1; | 544 | osk_flash_resource.end += SZ_32M - 1; |
545 | osk5912_smc91x_resources[1].start = gpio_to_irq(0); | ||
546 | osk5912_smc91x_resources[1].end = gpio_to_irq(0); | ||
547 | osk5912_cf_resources[0].start = gpio_to_irq(62); | ||
548 | osk5912_cf_resources[0].end = gpio_to_irq(62); | ||
550 | platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices)); | 549 | platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices)); |
551 | omap_board_config = osk_config; | 550 | omap_board_config = osk_config; |
552 | omap_board_config_size = ARRAY_SIZE(osk_config); | 551 | omap_board_config_size = ARRAY_SIZE(osk_config); |
@@ -563,6 +562,7 @@ static void __init osk_init(void) | |||
563 | gpio_direction_input(OMAP_MPUIO(1)); | 562 | gpio_direction_input(OMAP_MPUIO(1)); |
564 | 563 | ||
565 | omap_serial_init(); | 564 | omap_serial_init(); |
565 | osk_i2c_board_info[0].irq = gpio_to_irq(OMAP_MPUIO(1)); | ||
566 | omap_register_i2c_bus(1, 400, osk_i2c_board_info, | 566 | omap_register_i2c_bus(1, 400, osk_i2c_board_info, |
567 | ARRAY_SIZE(osk_i2c_board_info)); | 567 | ARRAY_SIZE(osk_i2c_board_info)); |
568 | osk_mistral_init(); | 568 | osk_mistral_init(); |
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 04efa7e61149..66e2a74d9861 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -220,7 +220,6 @@ static struct spi_board_info palmte_spi_info[] __initdata = { | |||
220 | .modalias = "tsc2102", | 220 | .modalias = "tsc2102", |
221 | .bus_num = 2, /* uWire (officially) */ | 221 | .bus_num = 2, /* uWire (officially) */ |
222 | .chip_select = 0, /* As opposed to 3 */ | 222 | .chip_select = 0, /* As opposed to 3 */ |
223 | .irq = OMAP_GPIO_IRQ(PALMTE_PINTDAV_GPIO), | ||
224 | .max_speed_hz = 8000000, | 223 | .max_speed_hz = 8000000, |
225 | }, | 224 | }, |
226 | }; | 225 | }; |
@@ -257,6 +256,7 @@ static void __init omap_palmte_init(void) | |||
257 | 256 | ||
258 | platform_add_devices(palmte_devices, ARRAY_SIZE(palmte_devices)); | 257 | platform_add_devices(palmte_devices, ARRAY_SIZE(palmte_devices)); |
259 | 258 | ||
259 | palmte_spi_info[0].irq = gpio_to_irq(PALMTE_PINTDAV_GPIO); | ||
260 | spi_register_board_info(palmte_spi_info, ARRAY_SIZE(palmte_spi_info)); | 260 | spi_register_board_info(palmte_spi_info, ARRAY_SIZE(palmte_spi_info)); |
261 | palmte_misc_gpio_setup(); | 261 | palmte_misc_gpio_setup(); |
262 | omap_serial_init(); | 262 | omap_serial_init(); |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index acd1f3645ba0..fa9ce9ce92d4 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -256,7 +256,6 @@ static struct spi_board_info __initdata palmtt_boardinfo[] = { | |||
256 | /* MicroWire (bus 2) CS0 has an ads7846e */ | 256 | /* MicroWire (bus 2) CS0 has an ads7846e */ |
257 | .modalias = "ads7846", | 257 | .modalias = "ads7846", |
258 | .platform_data = &palmtt_ts_info, | 258 | .platform_data = &palmtt_ts_info, |
259 | .irq = OMAP_GPIO_IRQ(6), | ||
260 | .max_speed_hz = 120000 /* max sample rate at 3V */ | 259 | .max_speed_hz = 120000 /* max sample rate at 3V */ |
261 | * 26 /* command + data + overhead */, | 260 | * 26 /* command + data + overhead */, |
262 | .bus_num = 2, | 261 | .bus_num = 2, |
@@ -304,6 +303,7 @@ static void __init omap_palmtt_init(void) | |||
304 | 303 | ||
305 | platform_add_devices(palmtt_devices, ARRAY_SIZE(palmtt_devices)); | 304 | platform_add_devices(palmtt_devices, ARRAY_SIZE(palmtt_devices)); |
306 | 305 | ||
306 | palmtt_boardinfo[0].irq = gpio_to_irq(6); | ||
307 | spi_register_board_info(palmtt_boardinfo,ARRAY_SIZE(palmtt_boardinfo)); | 307 | spi_register_board_info(palmtt_boardinfo,ARRAY_SIZE(palmtt_boardinfo)); |
308 | omap_serial_init(); | 308 | omap_serial_init(); |
309 | omap1_usb_init(&palmtt_usb_config); | 309 | omap1_usb_init(&palmtt_usb_config); |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index c1cd0f2d6866..b21df2f1cf82 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -223,7 +223,6 @@ static struct spi_board_info __initdata palmz71_boardinfo[] = { { | |||
223 | /* MicroWire (bus 2) CS0 has an ads7846e */ | 223 | /* MicroWire (bus 2) CS0 has an ads7846e */ |
224 | .modalias = "ads7846", | 224 | .modalias = "ads7846", |
225 | .platform_data = &palmz71_ts_info, | 225 | .platform_data = &palmz71_ts_info, |
226 | .irq = OMAP_GPIO_IRQ(PALMZ71_PENIRQ_GPIO), | ||
227 | .max_speed_hz = 120000 /* max sample rate at 3V */ | 226 | .max_speed_hz = 120000 /* max sample rate at 3V */ |
228 | * 26 /* command + data + overhead */, | 227 | * 26 /* command + data + overhead */, |
229 | .bus_num = 2, | 228 | .bus_num = 2, |
@@ -319,6 +318,7 @@ omap_palmz71_init(void) | |||
319 | 318 | ||
320 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 319 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
321 | 320 | ||
321 | palmz71_boardinfo[0].irq = gpio_to_irq(PALMZ71_PENIRQ_GPIO); | ||
322 | spi_register_board_info(palmz71_boardinfo, | 322 | spi_register_board_info(palmz71_boardinfo, |
323 | ARRAY_SIZE(palmz71_boardinfo)); | 323 | ARRAY_SIZE(palmz71_boardinfo)); |
324 | omap1_usb_init(&palmz71_usb_config); | 324 | omap1_usb_init(&palmz71_usb_config); |
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index 659d0f75de2c..37232d04233f 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -44,7 +44,6 @@ | |||
44 | static struct plat_serial8250_port voiceblue_ports[] = { | 44 | static struct plat_serial8250_port voiceblue_ports[] = { |
45 | { | 45 | { |
46 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x40000), | 46 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x40000), |
47 | .irq = OMAP_GPIO_IRQ(12), | ||
48 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 47 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
49 | .iotype = UPIO_MEM, | 48 | .iotype = UPIO_MEM, |
50 | .regshift = 1, | 49 | .regshift = 1, |
@@ -52,7 +51,6 @@ static struct plat_serial8250_port voiceblue_ports[] = { | |||
52 | }, | 51 | }, |
53 | { | 52 | { |
54 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x50000), | 53 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x50000), |
55 | .irq = OMAP_GPIO_IRQ(13), | ||
56 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 54 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
57 | .iotype = UPIO_MEM, | 55 | .iotype = UPIO_MEM, |
58 | .regshift = 1, | 56 | .regshift = 1, |
@@ -60,7 +58,6 @@ static struct plat_serial8250_port voiceblue_ports[] = { | |||
60 | }, | 58 | }, |
61 | { | 59 | { |
62 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x60000), | 60 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x60000), |
63 | .irq = OMAP_GPIO_IRQ(14), | ||
64 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 61 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
65 | .iotype = UPIO_MEM, | 62 | .iotype = UPIO_MEM, |
66 | .regshift = 1, | 63 | .regshift = 1, |
@@ -68,7 +65,6 @@ static struct plat_serial8250_port voiceblue_ports[] = { | |||
68 | }, | 65 | }, |
69 | { | 66 | { |
70 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x70000), | 67 | .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x70000), |
71 | .irq = OMAP_GPIO_IRQ(15), | ||
72 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 68 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
73 | .iotype = UPIO_MEM, | 69 | .iotype = UPIO_MEM, |
74 | .regshift = 1, | 70 | .regshift = 1, |
@@ -80,9 +76,6 @@ static struct plat_serial8250_port voiceblue_ports[] = { | |||
80 | static struct platform_device serial_device = { | 76 | static struct platform_device serial_device = { |
81 | .name = "serial8250", | 77 | .name = "serial8250", |
82 | .id = PLAT8250_DEV_PLATFORM1, | 78 | .id = PLAT8250_DEV_PLATFORM1, |
83 | .dev = { | ||
84 | .platform_data = voiceblue_ports, | ||
85 | }, | ||
86 | }; | 79 | }; |
87 | 80 | ||
88 | static int __init ext_uart_init(void) | 81 | static int __init ext_uart_init(void) |
@@ -90,6 +83,11 @@ static int __init ext_uart_init(void) | |||
90 | if (!machine_is_voiceblue()) | 83 | if (!machine_is_voiceblue()) |
91 | return -ENODEV; | 84 | return -ENODEV; |
92 | 85 | ||
86 | voiceblue_ports[0].irq = gpio_to_irq(12); | ||
87 | voiceblue_ports[1].irq = gpio_to_irq(13); | ||
88 | voiceblue_ports[2].irq = gpio_to_irq(14); | ||
89 | voiceblue_ports[3].irq = gpio_to_irq(15); | ||
90 | serial_device.dev.platform_data = voiceblue_ports; | ||
93 | return platform_device_register(&serial_device); | 91 | return platform_device_register(&serial_device); |
94 | } | 92 | } |
95 | arch_initcall(ext_uart_init); | 93 | arch_initcall(ext_uart_init); |
@@ -128,8 +126,6 @@ static struct resource voiceblue_smc91x_resources[] = { | |||
128 | .flags = IORESOURCE_MEM, | 126 | .flags = IORESOURCE_MEM, |
129 | }, | 127 | }, |
130 | [1] = { | 128 | [1] = { |
131 | .start = OMAP_GPIO_IRQ(8), | ||
132 | .end = OMAP_GPIO_IRQ(8), | ||
133 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | 129 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, |
134 | }, | 130 | }, |
135 | }; | 131 | }; |
@@ -275,6 +271,8 @@ static void __init voiceblue_init(void) | |||
275 | irq_set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); | 271 | irq_set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); |
276 | irq_set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); | 272 | irq_set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); |
277 | 273 | ||
274 | voiceblue_smc91x_resources[1].start = gpio_to_irq(8); | ||
275 | voiceblue_smc91x_resources[1].end = gpio_to_irq(8); | ||
278 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); | 276 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); |
279 | omap_board_config = voiceblue_config; | 277 | omap_board_config = voiceblue_config; |
280 | omap_board_config_size = ARRAY_SIZE(voiceblue_config); | 278 | omap_board_config_size = ARRAY_SIZE(voiceblue_config); |
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 7370983f809f..5a1b6af0046c 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -230,12 +230,12 @@ static struct i2c_board_info __initdata sdp2430_i2c1_boardinfo[] = { | |||
230 | { | 230 | { |
231 | I2C_BOARD_INFO("isp1301_omap", 0x2D), | 231 | I2C_BOARD_INFO("isp1301_omap", 0x2D), |
232 | .flags = I2C_CLIENT_WAKE, | 232 | .flags = I2C_CLIENT_WAKE, |
233 | .irq = OMAP_GPIO_IRQ(78), | ||
234 | }, | 233 | }, |
235 | }; | 234 | }; |
236 | 235 | ||
237 | static int __init omap2430_i2c_init(void) | 236 | static int __init omap2430_i2c_init(void) |
238 | { | 237 | { |
238 | sdp2430_i2c1_boardinfo[0].irq = gpio_to_irq(78); | ||
239 | omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, | 239 | omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, |
240 | ARRAY_SIZE(sdp2430_i2c1_boardinfo)); | 240 | ARRAY_SIZE(sdp2430_i2c1_boardinfo)); |
241 | omap_pmic_init(2, 100, "twl4030", INT_24XX_SYS_NIRQ, | 241 | omap_pmic_init(2, 100, "twl4030", INT_24XX_SYS_NIRQ, |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 4e9071589bfb..a09c699ab85c 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -873,7 +873,6 @@ static void __init omap4_sdp4430_wifi_mux_init(void) | |||
873 | } | 873 | } |
874 | 874 | ||
875 | static struct wl12xx_platform_data omap4_sdp4430_wlan_data __initdata = { | 875 | static struct wl12xx_platform_data omap4_sdp4430_wlan_data __initdata = { |
876 | .irq = OMAP_GPIO_IRQ(GPIO_WIFI_IRQ), | ||
877 | .board_ref_clock = WL12XX_REFCLOCK_26, | 876 | .board_ref_clock = WL12XX_REFCLOCK_26, |
878 | .board_tcxo_clock = WL12XX_TCXOCLOCK_26, | 877 | .board_tcxo_clock = WL12XX_TCXOCLOCK_26, |
879 | }; | 878 | }; |
@@ -883,6 +882,7 @@ static void __init omap4_sdp4430_wifi_init(void) | |||
883 | int ret; | 882 | int ret; |
884 | 883 | ||
885 | omap4_sdp4430_wifi_mux_init(); | 884 | omap4_sdp4430_wifi_mux_init(); |
885 | omap4_sdp4430_wlan_data.irq = gpio_to_irq(GPIO_WIFI_IRQ); | ||
886 | ret = wl12xx_set_platform_data(&omap4_sdp4430_wlan_data); | 886 | ret = wl12xx_set_platform_data(&omap4_sdp4430_wlan_data); |
887 | if (ret) | 887 | if (ret) |
888 | pr_err("Error setting wl12xx data: %d\n", ret); | 888 | pr_err("Error setting wl12xx data: %d\n", ret); |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index ac773829941f..768ece2e9c3b 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -136,8 +136,6 @@ static struct resource apollon_smc91x_resources[] = { | |||
136 | .flags = IORESOURCE_MEM, | 136 | .flags = IORESOURCE_MEM, |
137 | }, | 137 | }, |
138 | [1] = { | 138 | [1] = { |
139 | .start = OMAP_GPIO_IRQ(APOLLON_ETHR_GPIO_IRQ), | ||
140 | .end = OMAP_GPIO_IRQ(APOLLON_ETHR_GPIO_IRQ), | ||
141 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | 139 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, |
142 | }, | 140 | }, |
143 | }; | 141 | }; |
@@ -341,6 +339,8 @@ static void __init omap_apollon_init(void) | |||
341 | * You have to mux them off in device drivers later on | 339 | * You have to mux them off in device drivers later on |
342 | * if not needed. | 340 | * if not needed. |
343 | */ | 341 | */ |
342 | apollon_smc91x_resources[1].start = gpio_to_irq(APOLLON_ETHR_GPIO_IRQ); | ||
343 | apollon_smc91x_resources[1].end = gpio_to_irq(APOLLON_ETHR_GPIO_IRQ); | ||
344 | platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices)); | 344 | platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices)); |
345 | omap_serial_init(); | 345 | omap_serial_init(); |
346 | omap_sdrc_init(NULL, NULL); | 346 | omap_sdrc_init(NULL, NULL); |
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 | ||
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 54af800d143c..0bbbabe28fcc 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -348,7 +348,6 @@ static struct at24_platform_data m24c01 = { | |||
348 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { | 348 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { |
349 | { | 349 | { |
350 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 350 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
351 | .irq = OMAP_GPIO_IRQ(125), | ||
352 | }, | 351 | }, |
353 | { /* EEPROM on mainboard */ | 352 | { /* EEPROM on mainboard */ |
354 | I2C_BOARD_INFO("24c01", 0x52), | 353 | I2C_BOARD_INFO("24c01", 0x52), |
@@ -377,6 +376,7 @@ static void __init omap_h4_init(void) | |||
377 | */ | 376 | */ |
378 | 377 | ||
379 | board_mkp_init(); | 378 | board_mkp_init(); |
379 | h4_i2c_board_info[0].irq = gpio_to_irq(125); | ||
380 | i2c_register_board_info(1, h4_i2c_board_info, | 380 | i2c_register_board_info(1, h4_i2c_board_info, |
381 | ARRAY_SIZE(h4_i2c_board_info)); | 381 | ARRAY_SIZE(h4_i2c_board_info)); |
382 | 382 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index c775bead1497..20a47432bbd7 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -487,7 +487,6 @@ static struct platform_device omap3evm_wlan_regulator = { | |||
487 | }; | 487 | }; |
488 | 488 | ||
489 | struct wl12xx_platform_data omap3evm_wlan_data __initdata = { | 489 | struct wl12xx_platform_data omap3evm_wlan_data __initdata = { |
490 | .irq = OMAP_GPIO_IRQ(OMAP3EVM_WLAN_IRQ_GPIO), | ||
491 | .board_ref_clock = WL12XX_REFCLOCK_38, /* 38.4 MHz */ | 490 | .board_ref_clock = WL12XX_REFCLOCK_38, /* 38.4 MHz */ |
492 | }; | 491 | }; |
493 | #endif | 492 | #endif |
@@ -623,6 +622,7 @@ static void __init omap3_evm_wl12xx_init(void) | |||
623 | int ret; | 622 | int ret; |
624 | 623 | ||
625 | /* WL12xx WLAN Init */ | 624 | /* WL12xx WLAN Init */ |
625 | omap3evm_wlan_data.irq = gpio_to_irq(OMAP3EVM_WLAN_IRQ_GPIO); | ||
626 | ret = wl12xx_set_platform_data(&omap3evm_wlan_data); | 626 | ret = wl12xx_set_platform_data(&omap3evm_wlan_data); |
627 | if (ret) | 627 | if (ret) |
628 | pr_err("error setting wl12xx data: %d\n", ret); | 628 | pr_err("error setting wl12xx data: %d\n", ret); |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 28fc271f7031..449600712e19 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -199,7 +199,6 @@ static struct platform_device omap_vwlan_device = { | |||
199 | }; | 199 | }; |
200 | 200 | ||
201 | struct wl12xx_platform_data omap_panda_wlan_data __initdata = { | 201 | struct wl12xx_platform_data omap_panda_wlan_data __initdata = { |
202 | .irq = OMAP_GPIO_IRQ(GPIO_WIFI_IRQ), | ||
203 | /* PANDA ref clock is 38.4 MHz */ | 202 | /* PANDA ref clock is 38.4 MHz */ |
204 | .board_ref_clock = 2, | 203 | .board_ref_clock = 2, |
205 | }; | 204 | }; |
@@ -494,6 +493,7 @@ static void __init omap4_panda_init(void) | |||
494 | package = OMAP_PACKAGE_CBL; | 493 | package = OMAP_PACKAGE_CBL; |
495 | omap4_mux_init(board_mux, NULL, package); | 494 | omap4_mux_init(board_mux, NULL, package); |
496 | 495 | ||
496 | omap_panda_wlan_data.irq = gpio_to_irq(GPIO_WIFI_IRQ); | ||
497 | ret = wl12xx_set_platform_data(&omap_panda_wlan_data); | 497 | ret = wl12xx_set_platform_data(&omap_panda_wlan_data); |
498 | if (ret) | 498 | if (ret) |
499 | pr_err("error setting wl12xx data: %d\n", ret); | 499 | pr_err("error setting wl12xx data: %d\n", ret); |
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 0a668916e3c1..2b6db67291be 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -169,7 +169,6 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { | |||
169 | .modalias = "tsc2005", | 169 | .modalias = "tsc2005", |
170 | .bus_num = 1, | 170 | .bus_num = 1, |
171 | .chip_select = 0, | 171 | .chip_select = 0, |
172 | .irq = OMAP_GPIO_IRQ(RX51_TSC2005_IRQ_GPIO), | ||
173 | .max_speed_hz = 6000000, | 172 | .max_speed_hz = 6000000, |
174 | .controller_data = &tsc2005_mcspi_config, | 173 | .controller_data = &tsc2005_mcspi_config, |
175 | .platform_data = &tsc2005_pdata, | 174 | .platform_data = &tsc2005_pdata, |
@@ -1121,6 +1120,8 @@ static void __init rx51_init_tsc2005(void) | |||
1121 | "tsc2005 reset"); | 1120 | "tsc2005 reset"); |
1122 | if (r >= 0) { | 1121 | if (r >= 0) { |
1123 | tsc2005_pdata.set_reset = rx51_tsc2005_set_reset; | 1122 | tsc2005_pdata.set_reset = rx51_tsc2005_set_reset; |
1123 | rx51_peripherals_spi_board_info[RX51_SPI_TSC2005].irq = | ||
1124 | gpio_to_irq(RX51_TSC2005_IRQ_GPIO); | ||
1124 | } else { | 1125 | } else { |
1125 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 reset"); | 1126 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 reset"); |
1126 | tsc2005_pdata.esd_timeout_ms = 0; | 1127 | tsc2005_pdata.esd_timeout_ms = 0; |
diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c index 369c2eb7715b..1e8540eabde9 100644 --- a/arch/arm/mach-omap2/board-zoom-debugboard.c +++ b/arch/arm/mach-omap2/board-zoom-debugboard.c | |||
@@ -43,7 +43,6 @@ static inline void __init zoom_init_smsc911x(void) | |||
43 | static struct plat_serial8250_port serial_platform_data[] = { | 43 | static struct plat_serial8250_port serial_platform_data[] = { |
44 | { | 44 | { |
45 | .mapbase = ZOOM_UART_BASE, | 45 | .mapbase = ZOOM_UART_BASE, |
46 | .irq = OMAP_GPIO_IRQ(102), | ||
47 | .flags = UPF_BOOT_AUTOCONF|UPF_IOREMAP|UPF_SHARE_IRQ, | 46 | .flags = UPF_BOOT_AUTOCONF|UPF_IOREMAP|UPF_SHARE_IRQ, |
48 | .irqflags = IRQF_SHARED | IRQF_TRIGGER_RISING, | 47 | .irqflags = IRQF_SHARED | IRQF_TRIGGER_RISING, |
49 | .iotype = UPIO_MEM, | 48 | .iotype = UPIO_MEM, |
@@ -89,6 +88,8 @@ static inline void __init zoom_init_quaduart(void) | |||
89 | if (gpio_request_one(quart_gpio, GPIOF_IN, "TL16CP754C GPIO") < 0) | 88 | if (gpio_request_one(quart_gpio, GPIOF_IN, "TL16CP754C GPIO") < 0) |
90 | printk(KERN_ERR "Failed to request GPIO%d for TL16CP754C\n", | 89 | printk(KERN_ERR "Failed to request GPIO%d for TL16CP754C\n", |
91 | quart_gpio); | 90 | quart_gpio); |
91 | |||
92 | serial_platform_data[0].irq = gpio_to_irq(102); | ||
92 | } | 93 | } |
93 | 94 | ||
94 | static inline int omap_zoom_debugboard_detect(void) | 95 | static inline int omap_zoom_debugboard_detect(void) |
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); |
diff --git a/arch/arm/mach-omap2/common-board-devices.c b/arch/arm/mach-omap2/common-board-devices.c index 2d1d775f2c3e..9238ce0ed622 100644 --- a/arch/arm/mach-omap2/common-board-devices.c +++ b/arch/arm/mach-omap2/common-board-devices.c | |||
@@ -78,7 +78,7 @@ void __init omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, | |||
78 | ads7846_config.gpio_pendown = gpio_pendown; | 78 | ads7846_config.gpio_pendown = gpio_pendown; |
79 | 79 | ||
80 | spi_bi->bus_num = bus_num; | 80 | spi_bi->bus_num = bus_num; |
81 | spi_bi->irq = OMAP_GPIO_IRQ(gpio_pendown); | 81 | spi_bi->irq = gpio_to_irq(gpio_pendown); |
82 | 82 | ||
83 | if (board_pdata) | 83 | if (board_pdata) |
84 | spi_bi->platform_data = board_pdata; | 84 | spi_bi->platform_data = board_pdata; |