@@ -493,21 +493,6 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
return bus;
}
-int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge)
-{
- /*
- * We pass NULL as parent to pci_create_root_bus(), so if it is not NULL
- * here, pci_create_root_bus() has been called by someone else and
- * sysdata is likely to be different from what we expect. Let it go in
- * that case.
- */
- if (!bridge->dev.parent) {
- struct pci_sysdata *sd = bridge->bus->sysdata;
- ACPI_COMPANION_SET(&bridge->dev, sd->companion);
- }
- return 0;
-}
-
int __init pci_acpi_init(void)
{
struct pci_dev *dev = NULL;
@@ -1162,6 +1162,21 @@ void __init pcibios_irq_init(void)
}
}
+int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge)
+{
+ /*
+ * We pass NULL as parent to pci_create_root_bus(), so if it is not NULL
+ * here, pci_create_root_bus() has been called by someone else and
+ * sysdata is likely to be different from what we expect. Let it go in
+ * that case.
+ */
+ if (!bridge->dev.parent) {
+ struct pci_sysdata *sd = bridge->bus->sysdata;
+ ACPI_COMPANION_SET(&bridge->dev, sd->companion);
+ }
+ return 0;
+}
+
static void pirq_penalize_isa_irq(int irq, int active)
{
/*
It is always safe to run ACPI_COMPANION_SET even if we are using a non acpi system. Therefore we move pcibios_root_bridge_prepare into irq.c. This should make no difference to behaviour at this time but prepares for additional changes to pcibios_root_bridge_prepare which must apply both to acpi and non acpi systems. Signed-off-by: Matthew Minter <matt@masarand.com> --- arch/x86/pci/acpi.c | 15 --------------- arch/x86/pci/irq.c | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-)