]> err.no Git - linux-2.6/commitdiff
[MIPS] PNX: Fix modpost warnings.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 10 Jul 2007 14:04:06 +0000 (15:04 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 Jul 2007 16:33:05 +0000 (17:33 +0100)
  MODPOST vmlinux
WARNING: arch/mips/philips/pnx8550/common/built-in.o(.text+0xd40): Section mismatch: reference to .init.data: (after 'pnx8550_platform_init')
WARNING: arch/mips/philips/pnx8550/common/built-in.o(.text+0xd44): Section mismatch: reference to .init.data: (after 'pnx8550_platform_init')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/philips/pnx8550/common/platform.c

index d43f56e2cd7887b1adea9cbae07996b59e3951c6..c839436bd012915aa787eadec4097143a5391f70 100644 (file)
@@ -123,7 +123,7 @@ static struct platform_device *pnx8550_platform_devices[] __initdata = {
        &pnx8550_uart_device,
 };
 
-int pnx8550_platform_init(void)
+static int __init pnx8550_platform_init(void)
 {
        return platform_add_devices(pnx8550_platform_devices,
                                    ARRAY_SIZE(pnx8550_platform_devices));