summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);