ASoC: Say we can't read WM5100 ID register
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 17 Jan 2012 19:27:04 +0000 (19:27 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:30 +0000 (13:58 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm5100.c

index c112f5eaa119ad2cdfc99418f482442d919e0496..de8604229bc9b80090c41583fd5e8cd19862bbc2 100644 (file)
@@ -2702,7 +2702,7 @@ static __devinit int wm5100_i2c_probe(struct i2c_client *i2c,
 
        ret = regmap_read(wm5100->regmap, WM5100_SOFTWARE_RESET, &reg);
        if (ret < 0) {
-               dev_err(&i2c->dev, "Failed to read ID register\n");
+               dev_err(&i2c->dev, "Failed to read ID register: %d\n", ret);
                goto err_reset;
        }
        switch (reg) {