]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 19 Jul 2022 20:50:18 +0000 (15:50 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:33:00 +0000 (15:33 -0500)
commit2515f244cff6b09e71da582fae9771af81972baf
tree4e0d89d934ae4e1f1e6562d40508b93510a5c06e
parent876f444f6ac332e2809c2e7855ff20e19814dd18
PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS()

Replace SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() with NOIRQ_SYSTEM_SLEEP_PM_OPS(),
which has 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 2238160b4f05 ("PM: core: Add new *_PM_OPS macros, deprecate old ones").

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
drivers/pci/controller/dwc/pci-imx6.c