projects
/
wrapfs-4.19.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8d3805
)
ASoC: imx-es8328: Fix error return code in imx_es8328_probe()
author
Wang Wensheng
<wangwensheng4@huawei.com>
Thu, 10 Mar 2022 09:19:02 +0000
(09:19 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:14:46 +0000
(14:14 +0200)
[ Upstream commit
3b891513f95cba3944e72c1139ea706d04f3781b
]
Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.
Fixes: 7e7292dba215 ("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>
sound/soc/fsl/imx-es8328.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/imx-es8328.c
b/sound/soc/fsl/imx-es8328.c
index 9953438086e4783f9fd6ea52a26eb99a0e9da00b..735693274f495df73764c1774bddbc85b9d5af0b 100644
(file)
--- a/
sound/soc/fsl/imx-es8328.c
+++ b/
sound/soc/fsl/imx-es8328.c
@@
-93,6
+93,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;
}