mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
ASoC: imx-es8328: Fix error return code in imx_es8328_probe()
[ Upstream commit3b891513f9
] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes:7e7292dba2
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
67e12f1cb2
commit
9e1fdf18fe
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ static int imx_es8328_probe(struct platform_device *pdev)
|
|||
if (int_port > MUX_PORT_MAX || int_port == 0) {
|
||||
dev_err(dev, "mux-int-port: hardware only has %d mux ports\n",
|
||||
MUX_PORT_MAX);
|
||||
ret = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue