diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-09-20 21:17:16 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-10-05 15:25:06 +0200 |
commit | 98634aa8d837b38d96c06e99022be6b46ed91109 (patch) | |
tree | e174ca0660a97a34ea00b318e4665d50b31c8b24 /drivers/pci/pci.c | |
parent | PCI: ACPI: PM: Do not use pci_platform_pm_ops for ACPI (diff) | |
download | linux-98634aa8d837b38d96c06e99022be6b46ed91109.tar.xz linux-98634aa8d837b38d96c06e99022be6b46ed91109.zip |
PCI: PM: Drop struct pci_platform_pm_ops
After previous changes there are no more users of struct
pci_platform_pm_ops in the tree, so drop it along with all of the
remaining related code.
No functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 925f275daa54..e61e5f956306 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -972,17 +972,6 @@ static void pci_restore_bars(struct pci_dev *dev) pci_update_resource(dev, i); } -static const struct pci_platform_pm_ops *pci_platform_pm; - -int pci_set_platform_pm(const struct pci_platform_pm_ops *ops) -{ - if (!ops->is_manageable || !ops->set_state || !ops->get_state || - !ops->choose_state || !ops->set_wakeup || !ops->need_resume) - return -EINVAL; - pci_platform_pm = ops; - return 0; -} - static inline bool platform_pci_power_manageable(struct pci_dev *dev) { if (pci_use_mid_pm()) |