Re: [PATCH v2] mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak
From: Lee Jones
Date: Thu Jan 19 2023 - 23:50:16 EST
On Thu, 05 Jan 2023, Liang He wrote:
> In arizona_clk32k_enable(), we should use pm_runtime_resume_and_get()
> as pm_runtime_get_sync() will increase the refcnt even when it
> returns an error.
>
> Signed-off-by: Liang He <windhl@xxxxxxx>
> ---
> changelog:
> v1: add missing pm_runtime_put_sync()
> v2: use pm_runtime_resume_and_get()
>
> drivers/mfd/arizona-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
--
Lee Jones [李琼斯]