aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/xilinx/xlnx_formatter_pcm.c
diff options
context:
space:
mode:
authorGravatar Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 2022-07-05 11:26:45 +0200
committerGravatar Mark Brown <broonie@kernel.org> 2022-07-05 16:44:31 +0100
commit275cc7f5bd6f60565672ce339505b77fd47a8157 (patch)
tree59fd64530608a1528623a62e3cd95d90601f3c06 /sound/soc/xilinx/xlnx_formatter_pcm.c
parentASoC: codecs: wsa883x: fix warning using-module-alias-sdw.cocci (diff)
downloadlinux-275cc7f5bd6f60565672ce339505b77fd47a8157.tar.gz
linux-275cc7f5bd6f60565672ce339505b77fd47a8157.tar.bz2
linux-275cc7f5bd6f60565672ce339505b77fd47a8157.zip
ASoC: xilinx: Suppress second error message about reset failure in .remove()
Returning an error value in a platform remove callback results in an error message being emitted by the platform core, but otherwise it doesn't make a difference. If ret is != 0, there is already an error message and another very generic doesn't add any value, so return 0 unconditionally. This is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220705092645.101343-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/xilinx/xlnx_formatter_pcm.c')
-rw-r--r--sound/soc/xilinx/xlnx_formatter_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/xilinx/xlnx_formatter_pcm.c b/sound/soc/xilinx/xlnx_formatter_pcm.c
index f5ac0aa312d6..ff1fe62fea70 100644
--- a/sound/soc/xilinx/xlnx_formatter_pcm.c
+++ b/sound/soc/xilinx/xlnx_formatter_pcm.c
@@ -703,7 +703,7 @@ static int xlnx_formatter_pcm_remove(struct platform_device *pdev)
dev_err(&pdev->dev, "audio formatter reset failed\n");
clk_disable_unprepare(adata->axi_clk);
- return ret;
+ return 0;
}
static const struct of_device_id xlnx_formatter_pcm_of_match[] = {