Skip to content

Commit

Permalink
ASoC: wm8995: Return -EINVAL if device ID mismatch
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 16, 2011
1 parent 275708f commit 6fa0c25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/wm8995.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6fa0c25

Please sign in to comment.