summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-04-11 10:42:02 -0300
committerMark Brown <broonie@kernel.org>2017-04-11 19:35:58 +0100
commit6f2daf82fa1e92fcc10ec34a1d0ffe85a00bf794 (patch)
treeebda9cde5400a1a494e7200f25860a06095a10e5 /sound/soc
parent6cd6ad0e45b9ea48bf3b62eee2dd7238f3e4dd7c (diff)
ASoC: tas2552: Return the real error code
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>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/tas2552.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c
index baf455e8c2f7..fd5251e98eca 100644
--- 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)