Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] hvc_rtas_init() must be __init

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>

authored by

Adrian Bunk and committed by
Paul Mackerras
1407b3d1 16e543ff

+1 -1
+1 -1
drivers/char/hvc_rtas.c
··· 76 76 .put_chars = hvc_rtas_write_console, 77 77 }; 78 78 79 - static int hvc_rtas_init(void) 79 + static int __init hvc_rtas_init(void) 80 80 { 81 81 struct hvc_struct *hp; 82 82