PCI: portdrv: Deduplicate PM callback iterator
authorLukas Wunner <lukas@wunner.de>
Thu, 19 Jul 2018 22:27:52 +0000 (17:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jul 2018 16:07:59 +0000 (11:07 -0500)
commit6ccb127ba6dff251b75fa72e8c7777eaf12d9675
tree88fc1e49c13757ac4eab9de15fa34f55e11ea406
parent5b3f7b7d062bc839fe0744bdfd0cfd7e8d1c4cd9
PCI: portdrv: Deduplicate PM callback iterator

Replace suspend_iter() and resume_iter() with a single function pm_iter()
to allow addition of port service callbacks for further power management
phases without having to add another iterator each time.

No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_core.c