From: Dan Carpenter Date: Mon, 17 Feb 2025 07:32:51 +0000 (+0300) Subject: ASoC: SOF: imx: Fix error code in probe() X-Git-Tag: v6.15-rc1~173^2~4^2~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a78f244a9150da0878a37a1b59fb0608b1ccfb9d;p=thirdparty%2Fkernel%2Flinux.git ASoC: SOF: imx: Fix error code in probe() This accidentally returns "common->clk_num" instead of "ret". Fixes: 651e0ed391b1 ("ASoC: SOF: imx: introduce more common structures and functions") Signed-off-by: Dan Carpenter Link: https://patch.msgid.link/b30ffe7f-21fd-45f9-9528-d6d689e04003@stanley.mountain Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/imx/imx-common.c b/sound/soc/sof/imx/imx-common.c index ea4651a0995c0..62bf707aa909c 100644 --- a/sound/soc/sof/imx/imx-common.c +++ b/sound/soc/sof/imx/imx-common.c @@ -425,8 +425,7 @@ static int imx_probe(struct snd_sof_dev *sdev) ret = devm_clk_bulk_get_all(sdev->dev, &common->clks); if (ret < 0) - return dev_err_probe(sdev->dev, common->clk_num, - "failed to fetch clocks\n"); + return dev_err_probe(sdev->dev, ret, "failed to fetch clocks\n"); common->clk_num = ret; ret = clk_bulk_prepare_enable(common->clk_num, common->clks);