diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_acpi.c b/drivers/pci/pcie/aer/aerdrv_acpi.c index 8c199ae84f6..7e53fa590cf 100644 --- a/drivers/pci/pcie/aer/aerdrv_acpi.c +++ b/drivers/pci/pcie/aer/aerdrv_acpi.c | |||
@@ -33,6 +33,9 @@ int aer_osc_setup(struct pcie_device *pciedev) | |||
33 | struct pci_dev *pdev = pciedev->port; | 33 | struct pci_dev *pdev = pciedev->port; |
34 | acpi_handle handle = 0; | 34 | acpi_handle handle = 0; |
35 | 35 | ||
36 | if (acpi_pci_disabled) | ||
37 | return -1; | ||
38 | |||
36 | /* Find root host bridge */ | 39 | /* Find root host bridge */ |
37 | while (pdev->bus && pdev->bus->self) | 40 | while (pdev->bus && pdev->bus->self) |
38 | pdev = pdev->bus->self; | 41 | pdev = pdev->bus->self; |