From: Axel Lin Date: Thu, 16 Feb 2012 02:05:59 +0000 (+0800) Subject: ASoC: Get correct revision id for wm2200 X-Git-Tag: v3.4-rc1~88^2^2~27^2~94 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=916be22c150f89639976700c2023ca9b2a5ccebd;p=karo-tx-linux.git ASoC: Get correct revision id for wm2200 Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index a9388dfdbe0f..acbdc5fde923 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c @@ -2084,7 +2084,7 @@ static __devinit int wm2200_i2c_probe(struct i2c_client *i2c, goto err_reset; } - wm2200->rev = ret & WM2200_DEVICE_REVISION_MASK; + wm2200->rev = reg & WM2200_DEVICE_REVISION_MASK; dev_info(&i2c->dev, "revision %c\n", wm2200->rev + 'A');