summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-06-30 21:02:45 -0700
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-05 09:10:53 -0700
commitbcf396c48012a5e4c7ab77be5c40df10d6bdb8ad (patch)
tree0183319506205b137aff15a6e1eb106b29567c30 /arch
parentfd455ea899b5a14a8cdd276e15f3b47696526f92 (diff)
downloadkernel-crypto-bcf396c48012a5e4c7ab77be5c40df10d6bdb8ad.tar.gz
kernel-crypto-bcf396c48012a5e4c7ab77be5c40df10d6bdb8ad.tar.xz
kernel-crypto-bcf396c48012a5e4c7ab77be5c40df10d6bdb8ad.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 6f35a7e4893..a7421a50410 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)
uart->num = i;
p->private_data = uart;
uart->p = p;
- list_add(&uart->node, &uart_list);
+ list_add_tail(&uart->node, &uart_list);
if (cpu_is_omap44xx())
p->irq += 32;