diff options
author | Tony Lindgren <tony@atomide.com> | 2009-09-03 13:17:39 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-09-03 13:17:39 -0400 |
commit | 1f685b36dbf27db55072fb738aac57aaf37d2c71 (patch) | |
tree | 43cdcd1288d3bfa042a7cd6a89d2bf40f9b0261e /arch/arm/mach-omap2/serial.c | |
parent | 5567fa1f543dde3c42f8e52bf4f7005135b24896 (diff) | |
parent | ca4caa4e1d45f9542fa54263974d0ef637157b4a (diff) |
Merge branch '2_6_32_for_next' of git://git.pwsan.com/linux-2.6 into for-next
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 0f508109adcc..021130d830b5 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -578,7 +578,7 @@ static struct omap_uart_state omap_uart[OMAP_MAX_NR_PORTS] = { | |||
578 | #endif | 578 | #endif |
579 | }; | 579 | }; |
580 | 580 | ||
581 | void __init omap_serial_init(void) | 581 | void __init omap_serial_early_init(void) |
582 | { | 582 | { |
583 | int i; | 583 | int i; |
584 | char name[16]; | 584 | char name[16]; |
@@ -624,6 +624,18 @@ void __init omap_serial_init(void) | |||
624 | p->irq += 32; | 624 | p->irq += 32; |
625 | 625 | ||
626 | omap_uart_enable_clocks(uart); | 626 | omap_uart_enable_clocks(uart); |
627 | } | ||
628 | } | ||
629 | |||
630 | void __init omap_serial_init(void) | ||
631 | { | ||
632 | int i; | ||
633 | |||
634 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | ||
635 | struct omap_uart_state *uart = &omap_uart[i]; | ||
636 | struct platform_device *pdev = &uart->pdev; | ||
637 | struct device *dev = &pdev->dev; | ||
638 | |||
627 | omap_uart_reset(uart); | 639 | omap_uart_reset(uart); |
628 | omap_uart_idle_init(uart); | 640 | omap_uart_idle_init(uart); |
629 | 641 | ||