Skip to content

Commit 3b89151

Browse files
Wang Wenshengbroonie
authored andcommitted
ASoC: imx-es8328: Fix error return code in imx_es8328_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 7e7292d ("ASoC: fsl: add imx-es8328 machine driver") Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com> Link: https://lore.kernel.org/r/20220310091902.129299-1-wangwensheng4@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2588a01 commit 3b89151

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/fsl/imx-es8328.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static int imx_es8328_probe(struct platform_device *pdev)
8787
if (int_port > MUX_PORT_MAX || int_port == 0) {
8888
dev_err(dev, "mux-int-port: hardware only has %d mux ports\n",
8989
MUX_PORT_MAX);
90+
ret = -EINVAL;
9091
goto fail;
9192
}
9293

0 commit comments

Comments
 (0)