Skip to content

Commit

Permalink
microblaze: Setup early console dynamically
Browse files Browse the repository at this point in the history
Just setup pointer early console in run time.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Oct 21, 2010
1 parent 2af9ebe commit 9a7e8d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/microblaze/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)
{
Expand All @@ -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);

Expand Down

0 comments on commit 9a7e8d8

Please sign in to comment.