Skip to content

Commit

Permalink
[MIPS] early_printk: use init section
Browse files Browse the repository at this point in the history
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed May 11, 2007
1 parent 129a84d commit ca4437d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/mips/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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,
Expand Down

0 comments on commit ca4437d

Please sign in to comment.