diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 14:30:41 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 14:30:41 (GMT) |
commit | d50a87402e29e16a63152be810d9723ce4d87e37 (patch) | |
tree | 968932ec54cffd983b46bfb43d571c4d0d355561 /sound/soc/codecs/tpa6130a2.c | |
parent | 5033f43c66754296dfb0ac5c895208e4a7f93aac (diff) | |
parent | 24fb2b1174ddc1f844e2008eb5b3105832860395 (diff) | |
download | linux-fsl-qoriq-d50a87402e29e16a63152be810d9723ce4d87e37.tar.xz |
Merge branch 'for-2.6.37' into for-2.6.38
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r-- | sound/soc/codecs/tpa6130a2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c index bfef3da..2d64502 100644 --- a/sound/soc/codecs/tpa6130a2.c +++ b/sound/soc/codecs/tpa6130a2.c @@ -77,8 +77,10 @@ static int tpa6130a2_i2c_write(int reg, u8 value) if (data->power_state) { val = i2c_smbus_write_byte_data(tpa6130a2_client, reg, value); - if (val < 0) + if (val < 0) { dev_err(&tpa6130a2_client->dev, "Write failed\n"); + return val; + } } /* Either powered on or off, we save the context */ |