Commit a6b44a25 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Mark Brown

ASoC: rk817: Fix missing clk_disable_unprepare() in rk817_platform_probe

Fix the missing clk_disable_unprepare() before return
from rk817_platform_probe() in the error handling case.

Fixes: 0d6a04da ("ASoC: Add Rockchip rk817 audio CODEC support")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Tested-by: default avatarChris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20220307090146.4104-1-linmq006@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e45ac783
...@@ -508,12 +508,14 @@ static int rk817_platform_probe(struct platform_device *pdev) ...@@ -508,12 +508,14 @@ static int rk817_platform_probe(struct platform_device *pdev)
if (ret < 0) { if (ret < 0) {
dev_err(&pdev->dev, "%s() register codec error %d\n", dev_err(&pdev->dev, "%s() register codec error %d\n",
__func__, ret); __func__, ret);
goto err_; goto err_clk;
} }
return 0; return 0;
err_:
err_clk:
clk_disable_unprepare(rk817_codec_data->mclk);
err_:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment