drm/ingenic: Use the new PM macros
authorPaul Cercueil <paul@crapouillou.net>
Fri, 8 Jul 2022 20:54:06 +0000 (21:54 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Sat, 9 Jul 2022 15:52:14 +0000 (16:52 +0100)
commit006f3b2f324cb2277bdcb89693296d9647ece251
tree1260ba61c57ce96063ead894897c02da5829ba64
parentc167ee1f75ca5947bafe93ab23b007cb243e5f4a
drm/ingenic: Use the new PM macros

- Use DEFINE_SIMPLE_DEV_PM_OPS() instead of the SIMPLE_DEV_PM_OPS()
  macro. This makes it possible to remove the __maybe_unused flags on
  the callback functions.
- Since we only have callbacks for suspend/resume, we can conditionally
  compile the dev_pm_ops structure for when CONFIG_PM_SLEEP is enabled;
  so use the pm_sleep_ptr() macro instead of pm_ptr().

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220708205406.96473-7-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c