summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/midas_wm1811.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-06-08 16:24:31 +0200
committerMark Brown <broonie@kernel.org>2024-06-11 18:14:00 +0200
commit5c33876a20e1f42471c2b6fd1804428311d35f1f (patch)
tree251572e9ac75883877a66b8030e892c5a6a5554a /sound/soc/samsung/midas_wm1811.c
parentASoC: cs35l56: Attempt to read from cirrus,speaker-id device property first (diff)
downloadlinux-5c33876a20e1f42471c2b6fd1804428311d35f1f.tar.xz
linux-5c33876a20e1f42471c2b6fd1804428311d35f1f.zip
ASoC: samsung: midas_wm1811: Fix error code in probe()
This accidentally returns success instead of -EINVAL. Fixes: c91d0c2e198d ("ASoC: samsung: midas_wm1811: Add GPIO-based headset jack detection") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Artur Weber <aweber.kernel@gmail.com> Link: https://lore.kernel.org/r/01590109-cf27-404b-88ff-b42bb73ca1c6@moroto.mountain Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung/midas_wm1811.c')
-rw-r--r--sound/soc/samsung/midas_wm1811.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/midas_wm1811.c b/sound/soc/samsung/midas_wm1811.c
index 3a269c7de169..bbfe5fef59af 100644
--- a/sound/soc/samsung/midas_wm1811.c
+++ b/sound/soc/samsung/midas_wm1811.c
@@ -623,7 +623,7 @@ static int midas_probe(struct platform_device *pdev)
if (channel_type != IIO_VOLTAGE) {
dev_err(dev, "ADC channel is not voltage\n");
- return ret;
+ return -EINVAL;
}
priv->gpio_headset_key = devm_gpiod_get(dev, "headset-key",