ASoC: tas2552: Propagate the error code in suspend/resume
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 25 Apr 2017 00:43:49 +0000 (21:43 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 25 Apr 2017 15:40:17 +0000 (16:40 +0100)
commit12dc0f3b1ee599d3951698a2927c584700840b03
tree2c20b9bb3d58d9bbb6a2d7d3a85ba19ed0d108ed
parent7d8d2c9482474804a5c2b33ea9218d33dbcb48ba
ASoC: tas2552: Propagate the error code in suspend/resume

tas2552_suspend() and tas2552_resume() currently always return success,
even though they may fail.

Fix this behaviour by always propagating the error code.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c