aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpi_pcihp.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c
index f47bc74be567..09a84402986d 100644
--- a/drivers/pci/hotplug/acpi_pcihp.c
+++ b/drivers/pci/hotplug/acpi_pcihp.c
@@ -332,19 +332,14 @@ acpi_status acpi_get_hp_params_from_firmware(struct pci_bus *bus,
332{ 332{
333 acpi_status status = AE_NOT_FOUND; 333 acpi_status status = AE_NOT_FOUND;
334 acpi_handle handle, phandle; 334 acpi_handle handle, phandle;
335 struct pci_bus *pbus = bus; 335 struct pci_bus *pbus;
336 struct pci_dev *pdev;
337 336
338 do { 337 handle = NULL;
339 pdev = pbus->self; 338 for (pbus = bus; pbus; pbus = pbus->parent) {
340 if (!pdev) { 339 handle = acpi_pci_get_bridge_handle(pbus);
341 handle = acpi_get_pci_rootbridge_handle( 340 if (handle)
342 pci_domain_nr(pbus), pbus->number);
343 break; 341 break;
344 } 342 }
345 handle = DEVICE_ACPI_HANDLE(&(pdev->dev));
346 pbus = pbus->parent;
347 } while (!handle);
348 343
349 /* 344 /*
350 * _HPP settings apply to all child buses, until another _HPP is 345 * _HPP settings apply to all child buses, until another _HPP is