diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2019-10-14 20:46:50 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-11-21 00:33:32 +0100 |
commit | 6da2f2ccfd2deb81a63fc23a505ccd72de005c39 (patch) | |
tree | af2ccaf5fb046d23c278b9d2e42e2251bde78877 /Documentation/power/pci.rst | |
parent | PCI/PM: Run resume fixups before disabling wakeup events (diff) | |
download | linux-6da2f2ccfd2deb81a63fc23a505ccd72de005c39.tar.xz linux-6da2f2ccfd2deb81a63fc23a505ccd72de005c39.zip |
PCI/PM: Make power management op coding style consistent
Some of the power management ops use this style:
struct device_driver *drv = dev->driver;
if (drv && drv->pm && drv->pm->prepare(dev))
drv->pm->prepare(dev);
while others use this:
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
if (pm && pm->runtime_resume)
pm->runtime_resume(dev);
Convert the first style to the second so they're all consistent. Remove
local "error" variables when unnecessary. No functional change intended.
Link: https://lore.kernel.org/r/20191014230016.240912-6-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power/pci.rst')
0 files changed, 0 insertions, 0 deletions