]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: Fix PM usage reference of rockchip_i2s_tdm_resume
authorzhangqilong <zhangqilong3@huawei.com>
Tue, 15 Mar 2022 02:54:15 +0000 (10:54 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 16 Mar 2022 16:39:18 +0000 (16:39 +0000)
commit93fdcb17160309e31a3b1deae20ff3f8beee877a
treeea4862d35335de5d0eac89be7bc5a54f43564fba
parent8fa0f741fd4d351b6082493b4ca669a385d50b0a
ASoC: rockchip: Fix PM usage reference of rockchip_i2s_tdm_resume

pm_runtime_get_sync will increment pm usage counter
even it failed. Forgetting to putting operation will
result in reference leak here. We fix it by replacing
it with pm_runtime_resume_and_get to keep usage counter
balanced.

Fixes:5bf175e1d4961 ("ASoC: rockchip: add support for i2s-tdm controller")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20220315025415.2593762-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s_tdm.c