clocksource/drivers/ingenic-timer: Use pm_sleep_ptr() macro
authorPaul Cercueil <paul@crapouillou.net>
Sun, 18 Jun 2023 15:39:37 +0000 (17:39 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 19 Jun 2023 14:17:42 +0000 (16:17 +0200)
commitea95051063f95bf612683f5697e44604d0cbd0f1
treed50f9b0b8cbd1a0ab9a2ccb8bc22e45e3b145995
parent2951580ba6adb082bb6b7154a5ecb24e7c1f7569
clocksource/drivers/ingenic-timer: Use pm_sleep_ptr() macro

The use of the pm_sleep_ptr() macro allows the compiler to always see
the dev_pm_ops structure and related functions, while still allowing the
unused code to be removed, without the need for the __maybe_unused
markings.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230618153937.96649-1-paul@crapouillou.net
drivers/clocksource/ingenic-timer.c