Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/b30ffe7f-21fd-45f9-9528-d6d689e04003@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dan Carpenter and committed by
Mark Brown
a78f244a b20be2c7

+1 -2
+1 -2
sound/soc/sof/imx/imx-common.c
··· 425 425 426 426 ret = devm_clk_bulk_get_all(sdev->dev, &common->clks); 427 427 if (ret < 0) 428 - return dev_err_probe(sdev->dev, common->clk_num, 429 - "failed to fetch clocks\n"); 428 + return dev_err_probe(sdev->dev, ret, "failed to fetch clocks\n"); 430 429 common->clk_num = ret; 431 430 432 431 ret = clk_bulk_prepare_enable(common->clk_num, common->clks);