diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-29 11:27:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-09 11:38:58 -0400 |
commit | c38071c0ca00562f3008726c8f802797ad561fa7 (patch) | |
tree | fd6e58ddcd61b654ec6b82e6b1cb96bd2b54b21c /sound/soc/codecs/wm1250-ev1.c | |
parent | 39e9b8d25d1c3a11e41e0044e010034a883f02ef (diff) |
ASoC: Fix warning in WM1250-EV1 driver
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/codecs/wm1250-ev1.c')
-rw-r--r-- | sound/soc/codecs/wm1250-ev1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm1250-ev1.c b/sound/soc/codecs/wm1250-ev1.c index bbcf9ec34759..a98a3ff1ee73 100644 --- a/sound/soc/codecs/wm1250-ev1.c +++ b/sound/soc/codecs/wm1250-ev1.c | |||
@@ -58,12 +58,12 @@ static struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = { | |||
58 | static int __devinit wm1250_ev1_probe(struct i2c_client *i2c, | 58 | static int __devinit wm1250_ev1_probe(struct i2c_client *i2c, |
59 | const struct i2c_device_id *i2c_id) | 59 | const struct i2c_device_id *i2c_id) |
60 | { | 60 | { |
61 | int ret, id, board, rev; | 61 | int id, board, rev; |
62 | 62 | ||
63 | board = i2c_smbus_read_byte_data(i2c, 0); | 63 | board = i2c_smbus_read_byte_data(i2c, 0); |
64 | if (board < 0) { | 64 | if (board < 0) { |
65 | dev_err(&i2c->dev, "Failed to read ID: %d\n", ret); | 65 | dev_err(&i2c->dev, "Failed to read ID: %d\n", board); |
66 | return ret; | 66 | return board; |
67 | } | 67 | } |
68 | 68 | ||
69 | id = (board & 0xfe) >> 2; | 69 | id = (board & 0xfe) >> 2; |