Skip to content
Snippets Groups Projects
Commit 36ea1d57 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle
Browse files

[MIPS] early_printk: allow the early console to run earlier

parent ca4437d4
No related merge requests found
...@@ -30,7 +30,13 @@ static struct console early_console __initdata = { ...@@ -30,7 +30,13 @@ static struct console early_console __initdata = {
.index = -1 .index = -1
}; };
static int early_console_initialized __initdata;
void __init setup_early_printk(void) void __init setup_early_printk(void)
{ {
if (early_console_initialized)
return;
early_console_initialized = 1;
register_console(&early_console); register_console(&early_console);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment