summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-04-24 21:43:49 -0300
committerMark Brown <broonie@kernel.org>2017-04-25 16:40:17 +0100
commit12dc0f3b1ee599d3951698a2927c584700840b03 (patch)
tree2c20b9bb3d58d9bbb6a2d7d3a85ba19ed0d108ed /sound
parent7d8d2c9482474804a5c2b33ea9218d33dbcb48ba (diff)
downloadop-kernel-dev-12dc0f3b1ee599d3951698a2927c584700840b03.zip
op-kernel-dev-12dc0f3b1ee599d3951698a2927c584700840b03.tar.gz
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tas2552.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c
index fd5251e..8840f72 100644
--- a/sound/soc/codecs/tas2552.c
+++ b/sound/soc/codecs/tas2552.c
@@ -637,7 +637,7 @@ static int tas2552_suspend(struct snd_soc_codec *codec)
if (ret != 0)
dev_err(codec->dev, "Failed to disable supplies: %d\n",
ret);
- return 0;
+ return ret;
}
static int tas2552_resume(struct snd_soc_codec *codec)
@@ -653,7 +653,7 @@ static int tas2552_resume(struct snd_soc_codec *codec)
ret);
}
- return 0;
+ return ret;
}
#else
#define tas2552_suspend NULL
OpenPOWER on IntegriCloud