Skip to content

Commit

Permalink
[POWERPC] hvc_rtas_init() must be __init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Paul Mackerras committed Feb 14, 2008
1 parent 16e543f commit 1407b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hvc_rtas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1407b3d

Please sign in to comment.