diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-07-01 00:02:45 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-05 12:10:53 -0400 |
commit | bcf396c48012a5e4c7ab77be5c40df10d6bdb8ad (patch) | |
tree | 0183319506205b137aff15a6e1eb106b29567c30 /arch | |
parent | fd455ea899b5a14a8cdd276e15f3b47696526f92 (diff) |
OMAP2/3/4: UART: allow in-order port traversal
Use list_add_tail() when adding discovered UART ports. This is so
traversal using list_for_each_entry() will traverse the list in the
order they were found.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 6f35a7e4893f..a7421a50410b 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -601,7 +601,7 @@ void __init omap_serial_init(void) | |||
601 | uart->num = i; | 601 | uart->num = i; |
602 | p->private_data = uart; | 602 | p->private_data = uart; |
603 | uart->p = p; | 603 | uart->p = p; |
604 | list_add(&uart->node, &uart_list); | 604 | list_add_tail(&uart->node, &uart_list); |
605 | 605 | ||
606 | if (cpu_is_omap44xx()) | 606 | if (cpu_is_omap44xx()) |
607 | p->irq += 32; | 607 | p->irq += 32; |