diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-21 16:58:34 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-22 13:39:34 +0100 |
commit | 1892a991886ace2c3450bec801df2cf4028a803a (patch) | |
tree | b4af83054099837ff653124affcf42b6f4a5b429 /include/sound | |
parent | 644ed467c773ae7649cb54c9709aabc6f2984850 (diff) | |
download | linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.tar.gz linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.tar.bz2 linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.zip |
ASoC: core: Make snd_soc_unregister_card() return void
The function snd_soc_unregister_card() returned 0 unconditionally and most
callers don't care to check the return value. Make it return void and
adapt the callers that didn't ignore the return value before.
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/20220621145834.198519-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 76ee3c2b8b56..aad24a1d3276 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -426,7 +426,7 @@ enum snd_soc_pcm_subclass { }; int snd_soc_register_card(struct snd_soc_card *card); -int snd_soc_unregister_card(struct snd_soc_card *card); +void snd_soc_unregister_card(struct snd_soc_card *card); int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card); #ifdef CONFIG_PM_SLEEP int snd_soc_suspend(struct device *dev); |