linux/sound/soc/generic
Uwe Kleine-König 393df6f321
ASoC: simple-card-utils: Make simple_util_remove() return 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.

simple_util_remove() returned zero unconditionally. Make it return void
instead and convert all users to struct platform_device::remove_new().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231013221945.1489203-13-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-10-23 13:29:45 +01:00
..
audio-graph-card2-custom-sample.c ASoC: simple-card-utils: Make simple_util_remove() return void 2023-10-23 13:29:45 +01:00
audio-graph-card2-custom-sample.dtsi ASoC: audio-graph-card2: add comment for format property 2023-08-23 17:40:09 +01:00
audio-graph-card2.c ASoC: simple-card-utils: Make simple_util_remove() return void 2023-10-23 13:29:45 +01:00
audio-graph-card.c ASoC: simple-card-utils: Make simple_util_remove() return void 2023-10-23 13:29:45 +01:00
Kconfig ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
Makefile ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
simple-card-utils.c ASoC: simple-card-utils: Make simple_util_remove() return void 2023-10-23 13:29:45 +01:00
simple-card.c ASoC: simple-card-utils: Make simple_util_remove() return void 2023-10-23 13:29:45 +01:00
test-component.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00