mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
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>
This commit is contained in:
parent
7d8d2c9482
commit
12dc0f3b1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user