[2.6 patch] rrunner.c:rr_init() must be __devinit

From: Adrian Bunk
Date: Tue Jul 10 2007 - 08:46:57 EST


This patch fixes the following section mismatch:

<-- snip -->

...
MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x26e3f2): Section mismatch: reference to .init.text:rr_init (between 'rr_init_one' and 'rr_remove_one')
...

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---
--- linux-2.6.22-rc6-mm1/drivers/net/rrunner.c.old 2007-07-10 04:34:33.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/net/rrunner.c 2007-07-10 04:34:42.000000000 +0200
@@ -516,7 +516,7 @@
}


-static int __init rr_init(struct net_device *dev)
+static int __devinit rr_init(struct net_device *dev)
{
struct rr_private *rrpriv;
struct rr_regs __iomem *regs;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/