Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8634ddd authored by Andrew Patterson's avatar Andrew Patterson Committed by Greg Kroah-Hartman
Browse files

PCI ACPI: AER driver should only register PCIe devices with _OSC



AER is only used with PCIe devices so we should only check PCIe devices for
_OSC support.

Signed-off-by: default avatarAndrew Patterson <andrew.patterson@hp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c2778357
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ int aer_osc_setup(struct pcie_device *pciedev)
	}

	if (handle) {
		pci_osc_support_set(OSC_EXT_PCI_CONFIG_SUPPORT);
		pcie_osc_support_set(OSC_EXT_PCI_CONFIG_SUPPORT);
		status = pci_osc_control_set(handle,
					OSC_PCI_EXPRESS_AER_CONTROL |
					OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL);