projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd455ea
)
OMAP2/3/4: UART: allow in-order port traversal
author
Kevin Hilman
<khilman@deeprootsystems.com>
Wed, 1 Jul 2009 04:02:45 +0000
(21:02 -0700)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/serial.c
b/arch/arm/mach-omap2/serial.c
index 6f35a7e4893f4345790c4b52e7370cc747138b48..a7421a50410bc16a23126439071c73f51b35474e 100644
(file)
--- 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;