The only user of non-empty pcibios_pm_ops is s390 and it only uses
"noirq" callbacks, so drop the invocations of the other pcibios_pm_ops
callbacks from the PCI PM code.
That will allow subsequent changes to be somewhat simpler.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
- if (pcibios_pm_ops.freeze)
- return pcibios_pm_ops.freeze(dev);
-
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
int error = 0;
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
int error = 0;
- if (pcibios_pm_ops.thaw) {
- error = pcibios_pm_ops.thaw(dev);
- if (error)
- return error;
- }
-
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_resume(dev);
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_resume(dev);
Fixup:
pci_fixup_device(pci_fixup_suspend, pci_dev);
Fixup:
pci_fixup_device(pci_fixup_suspend, pci_dev);
- if (pcibios_pm_ops.poweroff)
- return pcibios_pm_ops.poweroff(dev);
-
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
int error = 0;
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
int error = 0;
- if (pcibios_pm_ops.restore) {
- error = pcibios_pm_ops.restore(dev);
- if (error)
- return error;
- }
-
/*
* This is necessary for the hibernation error path in which restore is
* called without restoring the standard config registers of the device.
/*
* This is necessary for the hibernation error path in which restore is
* called without restoring the standard config registers of the device.