projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cd6ad0
)
ASoC: tas2552: Return the real error code
author
Fabio Estevam
<fabio.estevam@nxp.com>
Tue, 11 Apr 2017 13:42:02 +0000
(10:42 -0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 Apr 2017 18:35:58 +0000
(19:35 +0100)
In the case of error in tas2552_codec_probe() we should better
propagate the real error code instead of always returning '-EIO'.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tas2552.c
b/sound/soc/codecs/tas2552.c
index baf455e8c2f7b038b0883e43184d12e99c46cfb7..fd5251e98ecac35af26f4093cdcef36301bdd0b0 100644
(file)
--- a/
sound/soc/codecs/tas2552.c
+++ b/
sound/soc/codecs/tas2552.c
@@
-611,7
+611,7
@@
probe_fail:
regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies),
tas2552->supplies);
- return
-EIO
;
+ return
ret
;
}
static int tas2552_codec_remove(struct snd_soc_codec *codec)