OMAP2/3/4: UART: allow in-order port traversal
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 1 Jul 2009 04:02:45 +0000 (21:02 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 5 Aug 2009 16:10:53 +0000 (09:10 -0700)
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>
arch/arm/mach-omap2/serial.c

index 6f35a7e4893f4345790c4b52e7370cc747138b48..a7421a50410bc16a23126439071c73f51b35474e 100644 (file)
@@ -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;
This page took 0.030848 seconds and 5 git commands to generate.