ASoC: Get correct revision id for wm2200
authorAxel Lin <axel.lin@gmail.com>
Thu, 16 Feb 2012 02:05:59 +0000 (10:05 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Feb 2012 02:18:56 +0000 (18:18 -0800)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm2200.c

index a9388dfdbe0f6454fad4e20c5cf9ef5c1b7947d1..acbdc5fde9236be0e43a5767bd0135eb92450e68 100644 (file)
@@ -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');