From 6fa0c25bf450fa9b2325e1eff9c58627330026ab Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 16 Sep 2011 10:46:33 +0800 Subject: [PATCH] ASoC: wm8995: Return -EINVAL if device ID mismatch Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- sound/soc/codecs/wm8995.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.0