[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SN6PR06MB534299BEE805BE9B6AFE7C3CA5099@SN6PR06MB5342.namprd06.prod.outlook.com>
Date: Mon, 7 Mar 2022 20:16:33 -0600
From: Chris Morgan <macromorgan@...mail.com>
To: Miaoqian Lin <linmq006@...il.com>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Lee Jones <lee.jones@...aro.org>,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Wei Yongjun <weiyongjun1@...wei.com>,
Nicolas Frattaroli <frattaroli.nicolas@...il.com>,
Colin Ian King <colin.king@...el.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: rk817: Fix missing clk_disable_unprepare() in
rk817_platform_probe
On Mon, Mar 07, 2022 at 09:01:30AM +0000, Miaoqian Lin wrote:
> 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")
Tested-by: Chris Morgan <macromorgan@...mail.com>
> Signed-off-by: Miaoqian Lin <linmq006@...il.com>
> ---
> sound/soc/codecs/rk817_codec.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c
> index 03f24edfe4f6..8fffe378618d 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;
> }
>
> --
> 2.17.1
>
Powered by blists - more mailing lists