aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2007-05-03 07:01:32 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-05-11 09:28:30 -0400
commit36ea1d57a4bb7d033b5f99f13c08f9af56cd70d7 (patch)
treec745ae44a878b986d2ac4558bfe62eeaec039254
parentca4437d4a58147aa975f3b4ad8f6cb35dfa43bdc (diff)
[MIPS] early_printk: allow the early console to run earlier
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/early_printk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c
index 818d7c350a2b..9dccfa4752b2 100644
--- a/arch/mips/kernel/early_printk.c
+++ b/arch/mips/kernel/early_printk.c
@@ -30,7 +30,13 @@ static struct console early_console __initdata = {
30 .index = -1 30 .index = -1
31}; 31};
32 32
33static int early_console_initialized __initdata;
34
33void __init setup_early_printk(void) 35void __init setup_early_printk(void)
34{ 36{
37 if (early_console_initialized)
38 return;
39 early_console_initialized = 1;
40
35 register_console(&early_console); 41 register_console(&early_console);
36} 42}