projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8163904
)
[SPARC]: Fix serial console node string creation.
author
David S. Miller
<davem@sunset.davemloft.net>
Sun, 29 Jul 2007 09:10:37 +0000
(
02:10
-0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 30 Jul 2007 07:27:37 +0000
(
00:27
-0700)
The string setting code depends upon the original value of the
"skip" variable, not the one that gets modified by the node
traversal loop.
Based upon a patch by Mark Fortescue.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/prom.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/prom.c
b/arch/sparc/kernel/prom.c
index
e3a5376
..
39fbd3c
100644
(file)
--- a/
arch/sparc/kernel/prom.c
+++ b/
arch/sparc/kernel/prom.c
@@
-415,7
+415,7
@@
static void __init of_console_init(void)
unsigned long flags;
const char *type;
phandle node;
- int skip, fd;
+ int skip,
tmp,
fd;
of_console_path = prom_early_alloc(256);
@@
-442,8
+442,9
@@
static void __init of_console_init(void)
prom_halt();
}
+ tmp = skip;
for_each_node_by_type(dp, type) {
- if (!
ski
p--)
+ if (!
tm
p--)
break;
}
if (!dp) {