]> Pileus Git - ~andy/linux/blobdiff - arch/x86/pci/acpi.c
Merge tag 'pci-v3.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
[~andy/linux] / arch / x86 / pci / acpi.c
index 53ea60458e01c941a4a9c7113fbb9eebae24efa2..3e724256dbee6b0bb4d2e4156522a08e3bd480e4 100644 (file)
@@ -521,6 +521,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
        sd = &info->sd;
        sd->domain = domain;
        sd->node = node;
+       sd->acpi = device->handle;
        /*
         * Maybe the desired pci bus has been already scanned. In such case
         * it is unnecessary to scan the pci bus with the given domain,busnum.
@@ -592,6 +593,14 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
        return bus;
 }
 
+int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge)
+{
+       struct pci_sysdata *sd = bridge->bus->sysdata;
+
+       ACPI_HANDLE_SET(&bridge->dev, sd->acpi);
+       return 0;
+}
+
 int __init pci_acpi_init(void)
 {
        struct pci_dev *dev = NULL;