Commit 12dc0f3b authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7d8d2c94
...@@ -637,7 +637,7 @@ static int tas2552_suspend(struct snd_soc_codec *codec) ...@@ -637,7 +637,7 @@ static int tas2552_suspend(struct snd_soc_codec *codec)
if (ret != 0) if (ret != 0)
dev_err(codec->dev, "Failed to disable supplies: %d\n", dev_err(codec->dev, "Failed to disable supplies: %d\n",
ret); ret);
return 0; return ret;
} }
static int tas2552_resume(struct snd_soc_codec *codec) static int tas2552_resume(struct snd_soc_codec *codec)
...@@ -653,7 +653,7 @@ static int tas2552_resume(struct snd_soc_codec *codec) ...@@ -653,7 +653,7 @@ static int tas2552_resume(struct snd_soc_codec *codec)
ret); ret);
} }
return 0; return ret;
} }
#else #else
#define tas2552_suspend NULL #define tas2552_suspend NULL
......
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