sunhme.c:quattro_pci_find() must be __devinit
authorAdrian Bunk <bunk@stusta.de>
Tue, 10 Jul 2007 12:44:49 +0000 (14:44 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 10 Jul 2007 16:45:29 +0000 (12:45 -0400)
This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x272f8b): Section mismatch: reference to .init.text:quattro_pci_find (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')
...

<--  snip  -->

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

index 51c3fe2108a36a81c3ac285d8ff2d66c4eb1623a..15146a119230e6b9d48dd00c74654aeff4d11a47 100644 (file)
@@ -2625,7 +2625,7 @@ static void quattro_sbus_free_irqs(void)
 #endif /* CONFIG_SBUS */
 
 #ifdef CONFIG_PCI
-static struct quattro * __init quattro_pci_find(struct pci_dev *pdev)
+static struct quattro * __devinit quattro_pci_find(struct pci_dev *pdev)
 {
        struct pci_dev *bdev = pdev->bus->self;
        struct quattro *qp;