Skip to contentSkip to conversation

pci_setup_bridge() 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_setup_bridge() mustn't be __devinit

This patch fixes the following section mismatch:

<-- snip -->

...
WARNING: drivers/pci/built-in.o(.text+0x28ee9): Section mismatch in reference from the function pci_bus_assign_resources() to the function .devinit.text:pci_setup_bridge()
...

<-- snip -->

---
799449b90fcd191ae39cd6b6147ce337ad8670ea

drivers/pci/setup-bus.c +1 -2
index 2cc957d..85e7971 100644
@@ -140,8 +140,7 @@ EXPORT_SYMBOL(pci_setup_cardbus);
    config space writes, so it's quite possible that an I/O window of
    the bridge will have some undesirable address (e.g. 0) after the
    first write. Ditto 64-bit prefetchable MMIO.  */
-static void __devinit
-pci_setup_bridge(struct pci_bus *bus)
+static void pci_setup_bridge(struct pci_bus *bus)
 {
 	struct pci_dev *bridge = bus->self;
 	struct pci_bus_region region;