]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: shpchp: Remove acpi_get_hp_hw_control_from_firmware() flags
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 23 May 2018 22:32:23 +0000 (17:32 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 2 Jun 2018 05:18:28 +0000 (00:18 -0500)
acpi_get_hp_hw_control_from_firmware() no longer uses the flags parameter,
so remove it.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
[bhelgaas: split to separate patch]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpi_pcihp.c
drivers/pci/hotplug/shpchp.h
include/linux/pci_hotplug.h

index 65cc5042489ad540599a05de714c59e2ebf719f6..7cc50cfef9c6a04ed94f521894b34d4802ad4463 100644 (file)
@@ -63,11 +63,10 @@ static acpi_status acpi_run_oshp(acpi_handle handle)
 /**
  * acpi_get_hp_hw_control_from_firmware
  * @dev: the pci_dev of the bridge that has a hotplug controller
- * @flags: requested control bits for _OSC
  *
  * Attempt to take hotplug control from firmware.
  */
-int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev, u32 flags)
+int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev)
 {
        const struct pci_host_bridge *host;
        const struct acpi_pci_root *root;
index c55730b61c9a48f0f1d6f57c676524e736430fa7..71f44edaa94d4519ced4420b6eb4a58bd748b46d 100644 (file)
@@ -177,8 +177,7 @@ static inline const char *slot_name(struct slot *slot)
 #include <linux/pci-acpi.h>
 static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev)
 {
-       u32 flags = OSC_PCI_SHPC_NATIVE_HP_CONTROL;
-       return acpi_get_hp_hw_control_from_firmware(dev, flags);
+       return acpi_get_hp_hw_control_from_firmware(dev);
 }
 #else
 #define get_hp_hw_control_from_firmware(dev) (0)
index 3f32575d1ce86aa344d7b51413ebe5e9b3fd41a5..39591213a5840c0499ea6510e69a877ea2822eb7 100644 (file)
@@ -163,7 +163,7 @@ struct hotplug_params {
 #include <linux/acpi.h>
 int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp);
 bool pciehp_is_native(struct pci_dev *bridge);
-int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags);
+int acpi_get_hp_hw_control_from_firmware(struct pci_dev *bridge);
 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle);
 int acpi_pci_detect_ejectable(acpi_handle handle);
 #else