linux-mips
[Top] [All Lists]

[PATCH 1/2] early_printk: use init section

To: ralf@linux-mips.org
Subject: [PATCH 1/2] early_printk: use init section
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Wed, 28 Mar 2007 08:51:29 +0200
Cc: linux-mips@linux-mips.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=qCk1BSJqKIfNXIhMkHjFIJPyMrGwsUdIn8v5Oq+Im0l4jaD4KpvDK3KCT7V6ASyKkkNOgbIs1NKBZ69lIJMaqUA8U/4ep5ST/VbTdHJi/Vg/RbdINecd5M1i2NR9U6bG1QlXdir0TSjhRsu4c9tIuH34O+rIk+yCpmteV+vLHZw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=Kxtny8o0DTDGwM8kCgwFHafNzQKlx1d1xptjENwalveV6+YOPrdjLP6tgoZLZ5aef9RcIEpUJKeSglthnswUm8HzOy/n1Ew11dnoIgsIaIY17tDo7QkjhlJWqt9nx7B9ItQglo2tygRvT6TYAKyHti2myppsKI1uliNexyU2TYs=
In-reply-to: <20070327175733.GA26496@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070327175733.GA26496@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
From: Franck Bui-Huu <fbuihuu@gmail.com>

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
 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 304efdc..57ba73a 100644
--- a/arch/mips/kernel/early_printk.c
+++ b/arch/mips/kernel/early_printk.c
@@ -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,
-- 
1.5.1.rc1.27.g1d848


<Prev in Thread] Current Thread [Next in Thread>