提交 6f2daf82 编写于 作者: F Fabio Estevam 提交者: Mark Brown

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: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 6cd6ad0e
...@@ -611,7 +611,7 @@ static int tas2552_codec_probe(struct snd_soc_codec *codec) ...@@ -611,7 +611,7 @@ static int tas2552_codec_probe(struct snd_soc_codec *codec)
regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies), regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies),
tas2552->supplies); tas2552->supplies);
return -EIO; return ret;
} }
static int tas2552_codec_remove(struct snd_soc_codec *codec) static int tas2552_codec_remove(struct snd_soc_codec *codec)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册