aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-htcherald.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-htcherald.c')
-rw-r--r--arch/arm/mach-omap1/board-htcherald.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c
index 827d83a96af8..60c06ee23855 100644
--- a/arch/arm/mach-omap1/board-htcherald.c
+++ b/arch/arm/mach-omap1/board-htcherald.c
@@ -324,8 +324,6 @@ static struct platform_device gpio_leds_device = {
324 324
325static struct resource htcpld_resources[] = { 325static struct resource htcpld_resources[] = {
326 [0] = { 326 [0] = {
327 .start = OMAP_GPIO_IRQ(HTCHERALD_GIRQ_BTNS),
328 .end = OMAP_GPIO_IRQ(HTCHERALD_GIRQ_BTNS),
329 .flags = IORESOURCE_IRQ, 327 .flags = IORESOURCE_IRQ,
330 }, 328 },
331}; 329};
@@ -450,7 +448,6 @@ static struct spi_board_info __initdata htcherald_spi_board_info[] = {
450 { 448 {
451 .modalias = "ads7846", 449 .modalias = "ads7846",
452 .platform_data = &htcherald_ts_platform_data, 450 .platform_data = &htcherald_ts_platform_data,
453 .irq = OMAP_GPIO_IRQ(HTCHERALD_GPIO_TS),
454 .max_speed_hz = 2500000, 451 .max_speed_hz = 2500000,
455 .bus_num = 2, 452 .bus_num = 2,
456 .chip_select = 1, 453 .chip_select = 1,
@@ -576,6 +573,8 @@ static void __init htcherald_init(void)
576 printk(KERN_INFO "HTC Herald init.\n"); 573 printk(KERN_INFO "HTC Herald init.\n");
577 574
578 /* Do board initialization before we register all the devices */ 575 /* Do board initialization before we register all the devices */
576 htcpld_resources[0].start = gpio_to_irq(HTCHERALD_GIRQ_BTNS);
577 htcpld_resources[0].end = gpio_to_irq(HTCHERALD_GIRQ_BTNS);
579 platform_add_devices(devices, ARRAY_SIZE(devices)); 578 platform_add_devices(devices, ARRAY_SIZE(devices));
580 579
581 htcherald_disable_watchdog(); 580 htcherald_disable_watchdog();
@@ -583,6 +582,7 @@ static void __init htcherald_init(void)
583 htcherald_usb_enable(); 582 htcherald_usb_enable();
584 omap1_usb_init(&htcherald_usb_config); 583 omap1_usb_init(&htcherald_usb_config);
585 584
585 htcherald_spi_board_info[0].irq = gpio_to_irq(HTCHERALD_GPIO_TS);
586 spi_register_board_info(htcherald_spi_board_info, 586 spi_register_board_info(htcherald_spi_board_info,
587 ARRAY_SIZE(htcherald_spi_board_info)); 587 ARRAY_SIZE(htcherald_spi_board_info));
588 588