From: Adrian Bunk Date: Tue, 10 Jul 2007 12:44:47 +0000 (+0200) Subject: rrunner.c:rr_init() must be __devinit X-Git-Tag: v2.6.23-rc1~1151^2~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f092432bd443416b649519c3d5405aa55ad2d15;p=linux-2.6 rrunner.c:rr_init() must be __devinit 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/rrunner.c b/drivers/net/rrunner.c index 25c73d47da..5c2e41fac6 100644 --- a/drivers/net/rrunner.c +++ b/drivers/net/rrunner.c @@ -516,7 +516,7 @@ static unsigned int write_eeprom(struct rr_private *rrpriv, } -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;