From 8dbe3726b78163a81b833ebcb7d89586100dae22 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Sun, 30 Oct 2022 22:37:13 +0000 Subject: [PATCH] v6.0: ASoC: simple-card-utils: Make asoc_simple_clean_reference() return void MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit e6f08af6340eaf88e9eeff71bd4533eee9a04119 Author: Uwe Kleine-König Date: Sun Jun 5 17:35:37 2022 +0200 ASoC: simple-card-utils: Make asoc_simple_clean_reference() return void asoc_simple_clean_reference() returns zero unconditionally. Letting it return void instead makes it easier to see in the caller that there is no error to handle. This is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20220605153537.26591-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown --- seeed-voicecard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seeed-voicecard.c b/seeed-voicecard.c index 8339df7..732e33e 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -886,7 +886,9 @@ static int seeed_voice_card_remove(struct platform_device *pdev) if (cancel_work_sync(&priv->work_codec_clk) != 0) { } - return asoc_simple_clean_reference(card); + asoc_simple_clean_reference(card); + + return 0; } static const struct of_device_id seeed_voice_of_match[] = {