Skip to content

Commit b19a573

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: imx-audmix: Fix return error with devm_clk_get()
The devm_clk_get() can return -EPROBE_DEFER error, modify the error code to be -EINVAL is not correct, which cause the -EPROBE_DEFER error is not correctly handled. This patch is to fix the return error code. Fixes: b86ef53 ("ASoC: fsl: Add Audio Mixer machine driver") Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/1694757731-18308-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c04efbf commit b19a573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/fsl/imx-audmix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static int imx_audmix_probe(struct platform_device *pdev)
315315
if (IS_ERR(priv->cpu_mclk)) {
316316
ret = PTR_ERR(priv->cpu_mclk);
317317
dev_err(&cpu_pdev->dev, "failed to get DAI mclk1: %d\n", ret);
318-
return -EINVAL;
318+
return ret;
319319
}
320320

321321
priv->audmix_pdev = audmix_pdev;

0 commit comments

Comments
 (0)