diff options
author | Wang Jingjin <wangjingjin1@huawei.com> | 2022-12-08 14:39:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 09:26:34 +0100 |
commit | 2c7863955293f8b62e3eda4f72c7f991780a3e2f (patch) | |
tree | 893b3bdd56fc14f770a33735e2f56f9d8365b2d6 /sound | |
parent | 057d09ac4c989d80618403a19343463360fe3052 (diff) | |
download | linux-stable-2c7863955293f8b62e3eda4f72c7f991780a3e2f.tar.gz linux-stable-2c7863955293f8b62e3eda4f72c7f991780a3e2f.tar.bz2 linux-stable-2c7863955293f8b62e3eda4f72c7f991780a3e2f.zip |
ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
[ Upstream commit 6d94d0090527b1763872275a7ccd44df7219b31e ]
rk_spdif_runtime_resume() may have called clk_prepare_enable() before return
from failed branches, add missing clk_disable_unprepare() in this case.
Fixes: f874b80e1571 ("ASoC: rockchip: Add rockchip SPDIF transceiver driver")
Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com>
Link: https://lore.kernel.org/r/20221208063900.4180790-1-wangjingjin1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/rockchip/rockchip_spdif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index a89fe9b6463b..5ac726da6015 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -89,6 +89,7 @@ static int __maybe_unused rk_spdif_runtime_resume(struct device *dev) ret = clk_prepare_enable(spdif->hclk); if (ret) { + clk_disable_unprepare(spdif->mclk); dev_err(spdif->dev, "hclk clock enable failed %d\n", ret); return ret; } |