PCI: Convert to new *_PM_OPS macros
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 19 Jul 2022 21:13:25 +0000 (16:13 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 Jul 2022 16:56:17 +0000 (11:56 -0500)
commit19b7858c3357df038d896c10e0d5e4572a77dd25
tree916cccbe1644bd8e8b245b45574a9d9c0dd1a14a
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
PCI: Convert to new *_PM_OPS macros

Replace SET_*_PM_OPS with *_PM_OPS, which which have the advantage that the
compiler always sees the PM callbacks as referenced, so they don't need to
be wrapped with "#ifdef CONFIG_PM_SLEEP" or tagged with "__maybe_unused" to
avoid "defined but not used" warnings.

See 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones").

Link: https://lore.kernel.org/r/20220719215108.1583108-1-helgaas@kernel.org
Tested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pali Rohár <pali@kernel.org> # pci-mvebu.c
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
drivers/pci/controller/cadence/pcie-cadence.c
drivers/pci/controller/dwc/pci-dra7xx.c
drivers/pci/controller/dwc/pci-exynos.c
drivers/pci/controller/dwc/pcie-intel-gw.c
drivers/pci/controller/pci-mvebu.c
drivers/pci/controller/pci-tegra.c
drivers/pci/controller/pcie-mediatek-gen3.c
drivers/pci/controller/pcie-mediatek.c
drivers/pci/controller/pcie-rcar-host.c
drivers/pci/controller/pcie-rockchip-host.c