From: Miaoqian Lin Date: Mon, 7 Mar 2022 09:01:30 +0000 (+0000) Subject: ASoC: rk817: Fix missing clk_disable_unprepare() in rk817_platform_probe X-Git-Tag: v5.15.73~5873 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39c2894dfc084972d85a6a211ca6ceb69bdc57d9;p=platform%2Fkernel%2Flinux-rpi.git ASoC: rk817: Fix missing clk_disable_unprepare() in rk817_platform_probe [ Upstream commit a6b44a2518a08348bd0f0401e4d2b99233bbabc2 ] Fix the missing clk_disable_unprepare() before return from rk817_platform_probe() in the error handling case. Fixes: 0d6a04da9b25 ("ASoC: Add Rockchip rk817 audio CODEC support") Signed-off-by: Miaoqian Lin Tested-by: Chris Morgan Link: https://lore.kernel.org/r/20220307090146.4104-1-linmq006@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index 03f24edf..8fffe37 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -508,12 +508,14 @@ static int rk817_platform_probe(struct platform_device *pdev) if (ret < 0) { dev_err(&pdev->dev, "%s() register codec error %d\n", __func__, ret); - goto err_; + goto err_clk; } return 0; -err_: +err_clk: + clk_disable_unprepare(rk817_codec_data->mclk); +err_: return ret; }