]> err.no Git - linux-2.6/commitdiff
[POWERPC] hvc_rtas_init() must be __init
authorAdrian Bunk <bunk@kernel.org>
Wed, 13 Feb 2008 21:30:57 +0000 (08:30 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 14 Feb 2008 11:11:02 +0000 (22:11 +1100)
This fixes the following section mismatch:

<--  snip  -->

...
WARNING: vmlinux.o(.text+0x2fbca8): Section mismatch in reference from the function .hvc_rtas_init() to the function .devinit.text:.hvc_alloc()
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/char/hvc_rtas.c

index bb09413d5a21ed5d09db2b1185c50141553ab0da..88590d040046decb71f76629c3aa52fd0383817b 100644 (file)
@@ -76,7 +76,7 @@ static struct hv_ops hvc_rtas_get_put_ops = {
        .put_chars = hvc_rtas_write_console,
 };
 
-static int hvc_rtas_init(void)
+static int __init hvc_rtas_init(void)
 {
        struct hvc_struct *hp;