diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-05-03 06:58:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-05-11 09:28:30 -0400 |
commit | ca4437d4a58147aa975f3b4ad8f6cb35dfa43bdc (patch) | |
tree | 904c11718434f82590be847a60040d17a229191a /arch/mips | |
parent | 129a84de2347002f09721cda3155ccfd19fade40 (diff) |
[MIPS] early_printk: use init section
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/early_printk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c index 4fa54b230c09..818d7c350a2b 100644 --- a/arch/mips/kernel/early_printk.c +++ b/arch/mips/kernel/early_printk.c | |||
@@ -12,7 +12,8 @@ | |||
12 | 12 | ||
13 | extern void prom_putchar(char); | 13 | extern void prom_putchar(char); |
14 | 14 | ||
15 | static void early_console_write(struct console *con, const char *s, unsigned n) | 15 | static void __init |
16 | early_console_write(struct console *con, const char *s, unsigned n) | ||
16 | { | 17 | { |
17 | while (n-- && *s) { | 18 | while (n-- && *s) { |
18 | if (*s == '\n') | 19 | if (*s == '\n') |
@@ -22,7 +23,7 @@ static void early_console_write(struct console *con, const char *s, unsigned n) | |||
22 | } | 23 | } |
23 | } | 24 | } |
24 | 25 | ||
25 | static struct console early_console = { | 26 | static struct console early_console __initdata = { |
26 | .name = "early", | 27 | .name = "early", |
27 | .write = early_console_write, | 28 | .write = early_console_write, |
28 | .flags = CON_PRINTBUFFER | CON_BOOT, | 29 | .flags = CON_PRINTBUFFER | CON_BOOT, |