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>
This commit is contained in:
Fabio Estevam 2017-04-11 10:42:02 -03:00 коммит произвёл Mark Brown
Родитель 6cd6ad0e45
Коммит 6f2daf82fa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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)