Skip to content

Commit

Permalink
x86/PCI: Keep resource allocation functions after boot
Browse files Browse the repository at this point in the history
The PCI resource allocation functions will be used for hot-added
devices, so keep them around.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Jan 7, 2013
1 parent 7452160 commit b95168e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/x86/pci/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ EXPORT_SYMBOL(pcibios_align_resource);
* as well.
*/

static void __init pcibios_allocate_bridge_resources(struct pci_dev *dev)
static void pcibios_allocate_bridge_resources(struct pci_dev *dev)
{
int idx;
struct resource *r;
Expand All @@ -223,7 +223,7 @@ static void __init pcibios_allocate_bridge_resources(struct pci_dev *dev)
}
}

static void __init pcibios_allocate_bus_resources(struct pci_bus *bus)
static void pcibios_allocate_bus_resources(struct pci_bus *bus)
{
struct pci_bus *child;

Expand All @@ -239,7 +239,7 @@ struct pci_check_idx_range {
int end;
};

static void __init pcibios_allocate_dev_resources(struct pci_dev *dev, int pass)
static void pcibios_allocate_dev_resources(struct pci_dev *dev, int pass)
{
int idx, disabled, i;
u16 command;
Expand Down Expand Up @@ -292,7 +292,7 @@ static void __init pcibios_allocate_dev_resources(struct pci_dev *dev, int pass)
}
}

static void __init pcibios_allocate_resources(struct pci_bus *bus, int pass)
static void pcibios_allocate_resources(struct pci_bus *bus, int pass)
{
struct pci_dev *dev;
struct pci_bus *child;
Expand All @@ -306,7 +306,7 @@ static void __init pcibios_allocate_resources(struct pci_bus *bus, int pass)
}
}

static void __init pcibios_allocate_dev_rom_resource(struct pci_dev *dev)
static void pcibios_allocate_dev_rom_resource(struct pci_dev *dev)
{
struct resource *r;

Expand All @@ -324,7 +324,7 @@ static void __init pcibios_allocate_dev_rom_resource(struct pci_dev *dev)
r->start = 0;
}
}
static void __init pcibios_allocate_rom_resources(struct pci_bus *bus)
static void pcibios_allocate_rom_resources(struct pci_bus *bus)
{
struct pci_dev *dev;
struct pci_bus *child;
Expand Down

0 comments on commit b95168e

Please sign in to comment.