aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/pci-acpi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 489063987325..c93fbe76d281 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -248,6 +248,9 @@ int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp)
248 acpi_handle handle, phandle; 248 acpi_handle handle, phandle;
249 struct pci_bus *pbus; 249 struct pci_bus *pbus;
250 250
251 if (acpi_pci_disabled)
252 return -ENODEV;
253
251 handle = NULL; 254 handle = NULL;
252 for (pbus = dev->bus; pbus; pbus = pbus->parent) { 255 for (pbus = dev->bus; pbus; pbus = pbus->parent) {
253 handle = acpi_pci_get_bridge_handle(pbus); 256 handle = acpi_pci_get_bridge_handle(pbus);