diff options
author | Fabio Estevam <festevam@denx.de> | 2024-08-19 22:26:16 -0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2024-09-02 13:17:53 +0200 |
commit | 41df03900dc586d556b99d4905bed2c1a2e83abf (patch) | |
tree | ff5fe092321fe2ff3efef86e97c50b0f7d4181b2 /virt | |
parent | bf2876f6bae3f9ece8d781627623630963b19333 (diff) |
thermal/drivers/imx: Remove __maybe_unused notations
Replace SET_RUNTIME_PM_OPS()/SET SYSTEM_SLEEP_PM_OPS() with their modern
RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS() alternatives.
The combined usage of pm_ptr() and RUNTIME_PM_OPS/SYSTEM_SLEEP_PM_OPS()
allows the compiler to evaluate if the runtime suspend/resume() functions
are used at build time or are simply dead code.
This allows removing __maybe_unused notations from the suspend/resume()
functions.
Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20240820012616.1449210-2-festevam@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions