Skip to content

Commit

Permalink
OMAP2/3/4: UART: allow in-order port traversal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman committed Aug 5, 2009
1 parent fd455ea commit bcf396c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bcf396c

Please sign in to comment.