From: Ralf Baechle Date: Fri, 27 Jul 2007 23:51:45 +0000 (+0100) Subject: [MIPS] rtlx: Fix modpost warning X-Git-Tag: v2.6.23-rc2~30^2~30 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d5a3f5fa389821f55c77462f30782b07080b8ef;p=linux-2.6 [MIPS] rtlx: Fix modpost warning WARNING: vmlinux.o(.text+0x11504): Section mismatch: reference to .init.data:register_chrdev_failed (between 'rtlx_module_init' and 'rtlx_dispatch') Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 5c04006056..aab89e97ab 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c @@ -471,7 +471,7 @@ static int rtlx_irq_num = MIPS_CPU_IRQ_BASE + MIPS_CPU_RTLX_IRQ; static char register_chrdev_failed[] __initdata = KERN_ERR "rtlx_module_init: unable to register device\n"; -static int rtlx_module_init(void) +static int __init rtlx_module_init(void) { struct device *dev; int i, err;