Paul Cercueil fcf2323828
drm: shmobile: Remove #ifdef guards for PM related functions
Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle
the .suspend/.resume callbacks.

These macros allow the suspend and resume functions to be automatically
dropped by the compiler when CONFIG_SUSPEND is disabled, without having
to use #ifdef guards.

This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221129191942.138244-6-paul@crapouillou.net
2022-12-12 13:07:02 +00:00
..
2022-11-07 10:19:04 -08:00
2022-10-12 10:23:24 -07:00
2022-11-18 13:59:45 -08:00
2022-11-24 11:05:43 +10:00
2022-11-04 16:03:43 -07:00
2022-10-14 18:41:41 -07:00
2022-11-24 11:05:43 +10:00
2022-11-11 09:03:19 -08:00
2022-09-21 20:33:49 +02:00
2022-11-24 11:05:43 +10:00
2022-11-18 17:56:29 -08:00
2022-10-12 10:23:24 -07:00
2022-10-09 14:05:15 -07:00
2022-11-18 13:59:45 -08:00
2022-11-24 11:05:43 +10:00
2022-11-24 11:05:43 +10:00
2022-10-14 18:41:41 -07:00
2022-11-18 13:59:45 -08:00
2022-10-10 13:13:51 -07:00
2022-10-14 12:38:03 -07:00
2022-11-16 10:36:13 -08:00
2022-10-10 09:10:28 -07:00
2022-10-07 11:32:10 -07:00
2022-10-07 11:24:20 -07:00
2022-11-19 15:51:22 -08:00
2022-11-19 15:51:22 -08:00
2022-11-11 09:13:52 -08:00
2022-11-24 11:05:43 +10:00
2022-11-18 10:59:52 -08:00
2022-10-22 03:29:32 +00:00
2022-11-17 22:06:28 +01:00
2022-10-10 14:02:53 -07:00
2022-10-10 14:02:53 -07:00
2022-11-01 12:21:53 -07:00
2022-11-24 11:05:43 +10:00