diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-06-24 13:32:03 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-05 12:10:52 -0400 |
commit | 4789998a30d845d94a7595076d1392ffd5a9d39e (patch) | |
tree | f42887079deba0986791f57a9f64683e9e24fb1b /arch/arm | |
parent | 10f90ed2d727c0f344d910c02c9726d0481d9b00 (diff) |
OMAP4: UART: cleanup special case IRQ handling
Streamline the OMAP4 special IRQ assignments by putting inside
normal init loop instead of having a separate loop.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index b094c15bfe47..c82ec95cd79e 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -496,10 +496,6 @@ void __init omap_serial_init(void) | |||
496 | 496 | ||
497 | if (info == NULL) | 497 | if (info == NULL) |
498 | return; | 498 | return; |
499 | if (cpu_is_omap44xx()) { | ||
500 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) | ||
501 | serial_platform_data[i].irq += 32; | ||
502 | } | ||
503 | 499 | ||
504 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | 500 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { |
505 | struct plat_serial8250_port *p = serial_platform_data + i; | 501 | struct plat_serial8250_port *p = serial_platform_data + i; |
@@ -533,6 +529,9 @@ void __init omap_serial_init(void) | |||
533 | uart->p = p; | 529 | uart->p = p; |
534 | list_add(&uart->node, &uart_list); | 530 | list_add(&uart->node, &uart_list); |
535 | 531 | ||
532 | if (cpu_is_omap44xx()) | ||
533 | p->irq += 32; | ||
534 | |||
536 | omap_uart_enable_clocks(uart); | 535 | omap_uart_enable_clocks(uart); |
537 | omap_uart_reset(uart); | 536 | omap_uart_reset(uart); |
538 | omap_uart_idle_init(uart); | 537 | omap_uart_idle_init(uart); |