]> err.no Git - linux-2.6/commitdiff
rrunner.c:rr_init() must be __devinit
authorAdrian Bunk <bunk@stusta.de>
Tue, 10 Jul 2007 12:44:47 +0000 (14:44 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 10 Jul 2007 16:24:42 +0000 (12:24 -0400)
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@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/rrunner.c

index 25c73d47daad9c29c0bb52e5c9035efbd9818909..5c2e41fac6d2d8bee3d57330cf73149f71b3dba1 100644 (file)
@@ -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;