]> err.no Git - linux-2.6/commitdiff
[MIPS] early_printk: use init section
authorFranck Bui-Huu <fbuihuu@gmail.com>
Thu, 3 May 2007 10:58:54 +0000 (12:58 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 11 May 2007 13:28:30 +0000 (14:28 +0100)
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/early_printk.c

index 4fa54b230c098ab39c75e07bec68cbf720d15f21..818d7c350a2bf5c453eb1d8adf8b340accca896a 100644 (file)
@@ -12,7 +12,8 @@
 
 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) {
                if (*s == '\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",
        .write  = early_console_write,
        .flags  = CON_PRINTBUFFER | CON_BOOT,