[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>
This commit is contained in:
Franck Bui-Huu 2007-05-03 13:01:32 +02:00 committed by Ralf Baechle
parent ca4437d4a5
commit 36ea1d57a4

View file

@ -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);
}