aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-02-17 07:32:51 +0000
committerMark Brown <[email protected]>2025-02-18 16:16:31 +0000
commita78f244a9150da0878a37a1b59fb0608b1ccfb9d (patch)
tree0521b758944e50ab7302c4256ddfb7f2753007b6
parentASoC: SOF: imx: Fix an IS_ERR() vs NULL bug in imx_parse_ioremap_memory() (diff)
downloadkernel-a78f244a9150da0878a37a1b59fb0608b1ccfb9d.tar.gz
kernel-a78f244a9150da0878a37a1b59fb0608b1ccfb9d.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/sof/imx/imx-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/imx/imx-common.c b/sound/soc/sof/imx/imx-common.c
index ea4651a0995c..62bf707aa909 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);