]> Pileus Git - ~andy/linux/commitdiff
microblaze: Setup early console dynamically
authorMichal Simek <monstr@monstr.eu>
Tue, 28 Sep 2010 06:38:28 +0000 (16:38 +1000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:51 +0000 (15:51 +1000)
Just setup pointer early console in run time.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/early_printk.c

index fa07d211adec39eff8c25041328fd416e1041d24..41e285c354b6fb12e304f58ecdad7b6aa90b7603 100644 (file)
@@ -63,7 +63,7 @@ static struct console early_serial_uartlite_console = {
        .index = -1,
 };
 
-static struct console *early_console = &early_serial_uartlite_console;
+static struct console *early_console;
 
 void early_printk(const char *fmt, ...)
 {
@@ -90,6 +90,7 @@ int __init setup_early_printk(char *opt)
 #ifdef CONFIG_MMU
                early_console_reg_tlb_alloc(base_addr);
 #endif
+               early_console = &early_serial_uartlite_console;
                early_printk("early_printk_console is enabled at 0x%08x\n",
                                                        base_addr);