]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak
authorLiang He <windhl@126.com>
Thu, 5 Jan 2023 06:10:55 +0000 (14:10 +0800)
committerLee Jones <lee@kernel.org>
Wed, 22 Feb 2023 08:25:53 +0000 (08:25 +0000)
commit4414a7ab80cebf715045e3c4d465feefbad21139
tree88ff216954157ff756b2f2d77fc7133d8fe42bca
parent7d1e3bd94828ad9fc86f55253cd6fec8edd65394
mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak

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@126.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230105061055.1509261-1-windhl@126.com
drivers/mfd/arizona-core.c