diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 4890639873256812b721d83f304dff634ef58da1..c93fbe76d281c4b4822ceddae79feab984cfb576 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) acpi_handle handle, phandle; struct pci_bus *pbus; + if (acpi_pci_disabled) + return -ENODEV; + handle = NULL; for (pbus = dev->bus; pbus; pbus = pbus->parent) { handle = acpi_pci_get_bridge_handle(pbus);