diff options
Diffstat (limited to 'arch/x86/pci/acpi.c')
-rw-r--r-- | arch/x86/pci/acpi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 53ea60458e01..3e724256dbee 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
@@ -521,6 +521,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) | |||
521 | sd = &info->sd; | 521 | sd = &info->sd; |
522 | sd->domain = domain; | 522 | sd->domain = domain; |
523 | sd->node = node; | 523 | sd->node = node; |
524 | sd->acpi = device->handle; | ||
524 | /* | 525 | /* |
525 | * Maybe the desired pci bus has been already scanned. In such case | 526 | * Maybe the desired pci bus has been already scanned. In such case |
526 | * it is unnecessary to scan the pci bus with the given domain,busnum. | 527 | * 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) | |||
592 | return bus; | 593 | return bus; |
593 | } | 594 | } |
594 | 595 | ||
596 | int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge) | ||
597 | { | ||
598 | struct pci_sysdata *sd = bridge->bus->sysdata; | ||
599 | |||
600 | ACPI_HANDLE_SET(&bridge->dev, sd->acpi); | ||
601 | return 0; | ||
602 | } | ||
603 | |||
595 | int __init pci_acpi_init(void) | 604 | int __init pci_acpi_init(void) |
596 | { | 605 | { |
597 | struct pci_dev *dev = NULL; | 606 | struct pci_dev *dev = NULL; |