Skip to contentSkip to conversation

sunhme.c:quattro_pci_find() must be __devinit

PATCH Applied Adrian Bunk 2 participants 2 messages Jul 10, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunhme.c:quattro_pci_find() must be __devinit

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 -->

---

drivers/net/sunhme.c renamed from drivers/net/sunhme.c.old +1 -1
@@ -2625,7 +2625,7 @@
 #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;
Applied
#1 lore raw
Quoted 4 lines · Adrian Bunk

This patch fixes the following section mismatch:

<-- snip -->

Quoted 8 lines

...
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 -->

applied