]> err.no Git - linux-2.6/commitdiff
sis900_mii_probe() must be __devinit
authorAdrian Bunk <bunk@stusta.de>
Tue, 10 Jul 2007 12:44:35 +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+0x298170): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sis900.c

index 2cb2e156c7587cbd1878ab743b3fda3f754ac41f..7c6e4808399a047501f0fddbe0a4462f2f4fab13 100644 (file)
@@ -573,7 +573,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev,
  *     return error if it failed to found.
  */
 
-static int __init sis900_mii_probe(struct net_device * net_dev)
+static int __devinit sis900_mii_probe(struct net_device * net_dev)
 {
        struct sis900_private * sis_priv = net_dev->priv;
        const char *dev_name = pci_name(sis_priv->pci_dev);