summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-09-28 16:38:28 +1000
committerMichal Simek <monstr@monstr.eu>2010-10-21 15:51:51 +1000
commit9a7e8d805ea042a7f37c8d3cef8350db63df9d57 (patch)
tree959e5f2fc9e226e72af6ac97d46ac789a01025fa /arch/microblaze
parent2af9ebe951bb12434e9f10cd1f0f83943ef3f54b (diff)
downloadop-kernel-dev-9a7e8d805ea042a7f37c8d3cef8350db63df9d57.zip
op-kernel-dev-9a7e8d805ea042a7f37c8d3cef8350db63df9d57.tar.gz
microblaze: Setup early console dynamically
Just setup pointer early console in run time. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/early_printk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c
index fa07d21..41e285c 100644
--- a/arch/microblaze/kernel/early_printk.c
+++ b/arch/microblaze/kernel/early_printk.c
@@ -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);
OpenPOWER on IntegriCloud