Commit 5c33876a authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: samsung: midas_wm1811: Fix error code in probe()

This accidentally returns success instead of -EINVAL.

Fixes: c91d0c2e ("ASoC: samsung: midas_wm1811: Add GPIO-based headset jack detection")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Acked-by: default avatarArtur Weber <aweber.kernel@gmail.com>
Link: https://lore.kernel.org/r/01590109-cf27-404b-88ff-b42bb73ca1c6@moroto.mountainSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c38082bf
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment