]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ibmlana_init_one() must be __devinit
authorAdrian Bunk <bunk@kernel.org>
Wed, 30 Jan 2008 20:02:08 +0000 (22:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:26:12 +0000 (04:26 -0800)
This patch fixes the following section mismatch:

<--  snip  -->

...
WARNING: drivers/net/built-in.o(.text+0x1148a5): Section mismatch in reference from the function ibmlana_init_one() to the variable .init.data:ibmlana_adapter_names
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmlana.c

index 22a1f2992d2fef250801883c4b3a932f2d01efda..95e3464068db540c1d2a3f530960586ee2d0cfe0 100644 (file)
@@ -906,7 +906,7 @@ static char *ibmlana_adapter_names[] __devinitdata = {
        NULL
 };
 
-static int ibmlana_init_one(struct device *kdev)
+static int __devinit ibmlana_init_one(struct device *kdev)
 {
        struct mca_device *mdev = to_mca_device(kdev);
        struct net_device *dev;