[PATCH 4/4] crypto: sun8i-ce-cipher - use pm_runtime_resume_and_get()

Corentin Labbe clabbe.montjoie at gmail.com
Fri Apr 25 06:28:18 PDT 2025


Le Fri, Apr 25, 2025 at 03:45:17PM +0300, Ovidiu Panait a écrit :
> Replace pm_runtime_get_sync() usage with pm_runtime_resume_and_get() to
> simplify error handling.
> 
> This is recommended in the documentation of pm_runtime_get_sync():
> /**
>  * pm_runtime_get_sync - Bump up usage counter of a device and resume it.
> ...
>  * Consider using pm_runtime_resume_and_get() instead of it, especially
>  * if its return value is checked by the caller, as this is likely to result
>  * in cleaner code.
> ...
>  */
> 

Tested-by: Corentin LABBE <clabbe.montjoie at gmail.com>
Acked-by: Corentin LABBE <clabbe.montjoie at gmail.com>

Thanks
Regards



More information about the linux-arm-kernel mailing list