Skip to contentSkip to conversation

Section mismatch: __devinit pci_root_bus_res() is calling __init update_res()

PATCH New Marin Mitov 1 participant 1 message Dec 20, 2009

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

PATCH 1/1 Section mismatch: __devinit pci_root_bus_res() is calling __init update_res()

Hi all,

Section mismatch: __devinit pci_root_bus_res() is calling __init update_res(). grepping the tree one find pci_root_bus_res is used only as:
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x342e, pci_root_bus_res); Mark it __init.

The patch is against 2.6.33-rc1.

==================================================================

arch/x86/pci/intel_bus.c +1 -1
@@ -39,7 +39,7 @@
 #define IOH_LMMIOH_LIMITU	0x118
 #define IOH_LCFGBUS		0x11c
 
-static void __devinit pci_root_bus_res(struct pci_dev *dev)
+static void __init pci_root_bus_res(struct pci_dev *dev)
 {
 	u16 word;
 	u32 dword;