summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-30 22:02:05 +0200
committerDavid S. Miller <davem@davemloft.net>2008-02-03 04:26:10 -0800
commitde4e7c889927e37099ef7d3c32b75823a17c9009 (patch)
tree645a14f714add8cfffad698f216ee5adae00aefd
parent237c5e8ee2328c31a130d35e32f7a2260c4512aa (diff)
downloadlwn-de4e7c889927e37099ef7d3c32b75823a17c9009.tar.gz
lwn-de4e7c889927e37099ef7d3c32b75823a17c9009.zip
via-rhine.c:rhine_hw_init() must be __devinit
Thie patch fixes the following section mismatch: <-- snip --> ... WARNING: drivers/net/built-in.o(.text+0xdd840): Section mismatch in reference from the function rhine_hw_init() to the function .devinit.text:rhine_reload_eeprom() ... <-- 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>
-rw-r--r--drivers/net/via-rhine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
index 87c180b563d3..7c851b1e6daa 100644
--- a/drivers/net/via-rhine.c
+++ b/drivers/net/via-rhine.c
@@ -606,7 +606,7 @@ static int rhine_napipoll(struct napi_struct *napi, int budget)
}
#endif
-static void rhine_hw_init(struct net_device *dev, long pioaddr)
+static void __devinit rhine_hw_init(struct net_device *dev, long pioaddr)
{
struct rhine_private *rp = netdev_priv(dev);