diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/hotplug/acpi_pcihp.c | 5 | ||||
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_acpi.c | 7 |
2 files changed, 2 insertions, 10 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c index bd831970f00b..e17ef54f0efc 100644 --- a/drivers/pci/hotplug/acpi_pcihp.c +++ b/drivers/pci/hotplug/acpi_pcihp.c | |||
@@ -404,10 +404,7 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags) | |||
404 | * OSHP within the scope of the hotplug controller and its parents, | 404 | * OSHP within the scope of the hotplug controller and its parents, |
405 | * upto the host bridge under which this controller exists. | 405 | * upto the host bridge under which this controller exists. |
406 | */ | 406 | */ |
407 | while (pdev->bus->self) | 407 | handle = acpi_find_root_bridge_handle(pdev); |
408 | pdev = pdev->bus->self; | ||
409 | handle = acpi_get_pci_rootbridge_handle(pci_domain_nr(pdev->bus), | ||
410 | pdev->bus->number); | ||
411 | if (handle) { | 408 | if (handle) { |
412 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); | 409 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); |
413 | dbg("Trying to get hotplug control for %s\n", | 410 | dbg("Trying to get hotplug control for %s\n", |
diff --git a/drivers/pci/pcie/aer/aerdrv_acpi.c b/drivers/pci/pcie/aer/aerdrv_acpi.c index 30f581b8791f..6dd7b13e9808 100644 --- a/drivers/pci/pcie/aer/aerdrv_acpi.c +++ b/drivers/pci/pcie/aer/aerdrv_acpi.c | |||
@@ -36,12 +36,7 @@ int aer_osc_setup(struct pcie_device *pciedev) | |||
36 | if (acpi_pci_disabled) | 36 | if (acpi_pci_disabled) |
37 | return -1; | 37 | return -1; |
38 | 38 | ||
39 | /* Find root host bridge */ | 39 | handle = acpi_find_root_bridge_handle(pdev); |
40 | while (pdev->bus->self) | ||
41 | pdev = pdev->bus->self; | ||
42 | handle = acpi_get_pci_rootbridge_handle( | ||
43 | pci_domain_nr(pdev->bus), pdev->bus->number); | ||
44 | |||
45 | if (handle) { | 40 | if (handle) { |
46 | pcie_osc_support_set(OSC_EXT_PCI_CONFIG_SUPPORT); | 41 | pcie_osc_support_set(OSC_EXT_PCI_CONFIG_SUPPORT); |
47 | status = pci_osc_control_set(handle, | 42 | status = pci_osc_control_set(handle, |