From: Axel Lin Date: Fri, 16 Sep 2011 02:46:33 +0000 (+0800) Subject: ASoC: wm8995: Return -EINVAL if device ID mismatch X-Git-Tag: v3.3-rc1~14^2~734 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fa0c25bf450fa9b2325e1eff9c58627330026ab;p=platform%2Fkernel%2Flinux-exynos.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 5ad873f..05f7795 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; }