Commit ca4437d4 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] early_printk: use init section

Signed-off-by: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 129a84de
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
extern void prom_putchar(char); extern void prom_putchar(char);
static void early_console_write(struct console *con, const char *s, unsigned n) static void __init
early_console_write(struct console *con, const char *s, unsigned n)
{ {
while (n-- && *s) { while (n-- && *s) {
if (*s == '\n') if (*s == '\n')
...@@ -22,7 +23,7 @@ static void early_console_write(struct console *con, const char *s, unsigned n) ...@@ -22,7 +23,7 @@ static void early_console_write(struct console *con, const char *s, unsigned n)
} }
} }
static struct console early_console = { static struct console early_console __initdata = {
.name = "early", .name = "early",
.write = early_console_write, .write = early_console_write,
.flags = CON_PRINTBUFFER | CON_BOOT, .flags = CON_PRINTBUFFER | CON_BOOT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment