mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
[MIPS] early_printk: use init section
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
129a84de23
commit
ca4437d4a5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user