Skip to contentSkip to conversation

pci_scan_device() mustn't be __devinit

PATCH New Adrian Bunk 1 participant 1 message Jan 30, 2008 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci_scan_device() mustn't be __devinit

This patch fixes the following section mismatch:

<-- snip -->

...
WARNING: drivers/pci/built-in.o(.text+0x150f): Section mismatch in reference from the function pci_scan_single_device() to the function .devinit.text:pci_scan_device()
...

<-- snip -->

---
d5abdec38c49b44c9ba37c97f2f31f2c2fd19037

drivers/pci/probe.c +1 -2
index 0ed050a..2533b69 100644
@@ -873,8 +873,7 @@ EXPORT_SYMBOL(alloc_pci_dev);
  * Read the config data for a PCI device, sanity-check it
  * and fill in the dev structure...
  */
-static struct pci_dev * __devinit
-pci_scan_device(struct pci_bus *bus, int devfn)
+static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn)
 {
 	struct pci_dev *dev;
 	u32 l;