提交 36ea1d57 编写于 作者: F Franck Bui-Huu 提交者: Ralf Baechle

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

Signed-off-by: NFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 ca4437d4
......@@ -30,7 +30,13 @@ static struct console early_console __initdata = {
.index = -1
};
static int early_console_initialized __initdata;
void __init setup_early_printk(void)
{
if (early_console_initialized)
return;
early_console_initialized = 1;
register_console(&early_console);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册