linux/sound/soc/stm
Uwe Kleine-König c4d4ce48f8
ASoC: stm: stm32_spdifrx: 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-140-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:09:05 +00:00
..
Kconfig ASoC: stm: depend on COMMON_CLK to fix compile tests 2020-11-23 20:39:48 +00:00
Makefile ASoC: stm32: add DFSDM DAI support 2018-01-10 10:52:05 +00:00
stm32_adfsdm.c ASoC: stm: stm32_adfsdm: Convert to platform remove callback returning void 2023-03-20 13:09:03 +00:00
stm32_i2s.c ASoC: stm: stm32_i2s: Convert to platform remove callback returning void 2023-03-20 13:09:04 +00:00
stm32_sai_sub.c ASoC: stm: stm32_sai_sub: Convert to platform remove callback returning void 2023-03-20 13:09:05 +00:00
stm32_sai.c ASoC: stm: Use dev_err_probe() helper 2021-12-20 12:47:23 +00:00
stm32_sai.h Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
stm32_spdifrx.c ASoC: stm: stm32_spdifrx: Convert to platform remove callback returning void 2023-03-20 13:09:05 +00:00