Re: [PATCH] drivers: misc: Convert to DEFINE_SIMPLE_DEV_PM_OPS()

From: Michał Mirosław

Date: Sat Aug 22 2026 - 06:24:47 EST


On Fri, Aug 21, 2026 at 12:13:15PM +0000, Triet Hoang wrote:
> Convert the deprecated SIMPLE_DEV_PM_OPS
> to DEFINE_SIMPLE_DEV_PM_OPS
> and pm_sleep_ptr().
>
> This lets us drop the __maybe_unused annotations
> from the suspend and resume callbacks,
> also reduces kernel size in case CONFIG_PM or
> CONFIG_PM_SLEEP is disabled.
>
> Also allow to remove #ifdef CONFIG_PM_SLEEP.
>
> Signed-off-by: Triet Hoang <triet.hoang.dev@xxxxxxxxx>
> ---
[...]
> drivers/misc/cb710/core.c | 8 ++++----

Acked-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>