diff options
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/prom.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c index e3a537650db1..39fbd3c8ab0b 100644 --- a/arch/sparc/kernel/prom.c +++ b/arch/sparc/kernel/prom.c | |||
@@ -415,7 +415,7 @@ static void __init of_console_init(void) | |||
415 | unsigned long flags; | 415 | unsigned long flags; |
416 | const char *type; | 416 | const char *type; |
417 | phandle node; | 417 | phandle node; |
418 | int skip, fd; | 418 | int skip, tmp, fd; |
419 | 419 | ||
420 | of_console_path = prom_early_alloc(256); | 420 | of_console_path = prom_early_alloc(256); |
421 | 421 | ||
@@ -442,8 +442,9 @@ static void __init of_console_init(void) | |||
442 | prom_halt(); | 442 | prom_halt(); |
443 | } | 443 | } |
444 | 444 | ||
445 | tmp = skip; | ||
445 | for_each_node_by_type(dp, type) { | 446 | for_each_node_by_type(dp, type) { |
446 | if (!skip--) | 447 | if (!tmp--) |
447 | break; | 448 | break; |
448 | } | 449 | } |
449 | if (!dp) { | 450 | if (!dp) { |