projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a5288
)
ASoC: Do not update the cache if write to hardware failed
author
Axel Lin
<axel.lin@gmail.com>
Tue, 23 Nov 2010 06:14:07 +0000
(14:14 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 23 Nov 2010 14:29:11 +0000
(14:29 +0000)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/tpa6130a2.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tpa6130a2.c
b/sound/soc/codecs/tpa6130a2.c
index
ee4fb20
..
d2c2430
100644
(file)
--- a/
sound/soc/codecs/tpa6130a2.c
+++ b/
sound/soc/codecs/tpa6130a2.c
@@
-78,8
+78,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 */