From: Axel Lin Date: Fri, 16 Sep 2011 02:46:33 +0000 (+0800) Subject: ASoC: wm8995: Return -EINVAL if device ID mismatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fa0c25bf450fa9b2325e1eff9c58627330026ab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: wm8995: Return -EINVAL if device ID mismatch Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 5ad873fda814..05f779532b1b 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c @@ -1642,6 +1642,7 @@ static int wm8995_probe(struct snd_soc_codec *codec) if (ret != 0x8995) { dev_err(codec->dev, "Invalid device ID: %#x\n", ret); + ret = -EINVAL; goto err_reg_enable; }