aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pci_hotplug.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2018-05-24 15:10:21 -0500
committerBjorn Helgaas <bhelgaas@google.com>2018-06-02 00:18:28 -0500
commit96a621e01a42dc53848e2e4915fd807ebc1fc82f (patch)
tree159ed53677ea087828c78c80e046babbb02b5d26 /include/linux/pci_hotplug.h
parentPCI: shpchp: Remove acpi_get_hp_hw_control_from_firmware() flags (diff)
downloadwireguard-linux-96a621e01a42dc53848e2e4915fd807ebc1fc82f.tar.xz
wireguard-linux-96a621e01a42dc53848e2e4915fd807ebc1fc82f.zip
PCI: shpchp: Remove get_hp_hw_control_from_firmware() wrapper
get_hp_hw_control_from_firmware() is a trivial wrapper around acpi_get_hp_hw_control_from_firmware(), probably intended to be generic in case other firmware needed similar OS/platform negotiation. Remove get_hp_hw_control_from_firmware() and call acpi_get_hp_hw_control_from_firmware() directly. Add a stub for acpi_get_hp_hw_control_from_firmware() for the non-ACPI case. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pci_hotplug.h')
-rw-r--r--include/linux/pci_hotplug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h
index 39591213a584..1f5c935eb0de 100644
--- a/include/linux/pci_hotplug.h
+++ b/include/linux/pci_hotplug.h
@@ -172,6 +172,11 @@ static inline int pci_get_hp_params(struct pci_dev *dev,
{
return -ENODEV;
}
+
+static inline int acpi_get_hp_hw_control_from_firmware(struct pci_dev *bridge)
+{
+ return 0;
+}
static inline bool pciehp_is_native(struct pci_dev *bridge) { return true; }
#endif
#endif