2009-12-20 10:48:39

by Marin Mitov

[permalink] [raw]
Subject: [PATCH]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.

Signed-off-by: Marin Mitov <[email protected]>

==================================================================
--- a/arch/x86/pci/intel_bus.c 2009-12-20 11:50:44.000000000 +0200
+++ b/arch/x86/pci/intel_bus.c 2009-12-20 11:51:03.000000000 +0200
@@ -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;