diff options
Diffstat (limited to 'arch/mips/kernel/early_printk.c')
-rw-r--r-- | arch/mips/kernel/early_printk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c index 9ae813eb782e..9e6440eaa455 100644 --- a/arch/mips/kernel/early_printk.c +++ b/arch/mips/kernel/early_printk.c | |||
@@ -14,8 +14,7 @@ | |||
14 | 14 | ||
15 | extern void prom_putchar(char); | 15 | extern void prom_putchar(char); |
16 | 16 | ||
17 | static void __init | 17 | static void early_console_write(struct console *con, const char *s, unsigned n) |
18 | early_console_write(struct console *con, const char *s, unsigned n) | ||
19 | { | 18 | { |
20 | while (n-- && *s) { | 19 | while (n-- && *s) { |
21 | if (*s == '\n') | 20 | if (*s == '\n') |
@@ -25,7 +24,7 @@ early_console_write(struct console *con, const char *s, unsigned n) | |||
25 | } | 24 | } |
26 | } | 25 | } |
27 | 26 | ||
28 | static struct console early_console __initdata = { | 27 | static struct console early_console = { |
29 | .name = "early", | 28 | .name = "early", |
30 | .write = early_console_write, | 29 | .write = early_console_write, |
31 | .flags = CON_PRINTBUFFER | CON_BOOT, | 30 | .flags = CON_PRINTBUFFER | CON_BOOT, |