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 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
324static struct resource htcpld_resources[] = { 324static 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