ASoC: ad1980: Return proper error if vendor id mismatch
authorAxel Lin <axel.lin@gmail.com>
Tue, 6 Sep 2011 02:37:48 +0000 (10:37 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 8 Sep 2011 22:39:51 +0000 (15:39 -0700)
commit0f73644f372281f2f9c33a0459dfdfc8bc77fbda
treee4b0f7af29cda197c2fc5d64b717aa4d9b4a5b99
parent3ed464659a1d83a87f4ef79fab4d85a8dcf677c9
ASoC: ad1980: Return proper error if vendor id mismatch

Return -ENODEV instead of 0 if vendor id mismatch.

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>
sound/soc/codecs/ad1980.c