linux/sound/soc/sprd
Uwe Kleine-König ed771e2bea
ASoC: sprd: sprd-mcdt: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-136-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:09:02 +00:00
..
Kconfig
Makefile
sprd-mcdt.c ASoC: sprd: sprd-mcdt: Convert to platform remove callback returning void 2023-03-20 13:09:02 +00:00
sprd-mcdt.h
sprd-pcm-compress.c ASoC: various vendors: delete repeated words in comments 2020-08-18 14:52:32 +01:00
sprd-pcm-dma.c ASoC: sprd: Use managed buffer allocation 2021-08-04 08:10:27 +02:00
sprd-pcm-dma.h ASoC: sprd: use snd_compress_ops 2020-04-21 19:01:59 +01:00