Commit 6f2daf82 authored by Fabio Estevam's avatar Fabio Estevam Committed by 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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6cd6ad0e
......@@ -611,7 +611,7 @@ static int tas2552_codec_probe(struct snd_soc_codec *codec)
regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies),
tas2552->supplies);
return -EIO;
return ret;
}
static int tas2552_codec_remove(struct snd_soc_codec *codec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment