linux/sound/soc/atmel
Uwe Kleine-König d2679d8529
ASoC: atmel: tse850-pcm5142: 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>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Peter Rosin <peda@axentia.se>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-34-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:28 +00:00
..
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Remove the unneeded result variable 2022-08-23 13:04:51 +01:00
atmel_ssc_dai.h ASoC: atmel_ssc_dai: Remove wrong spinlock usage 2019-09-18 11:12:24 +01:00
atmel_wm8904.c ASoC: atmel: atmel_wm8904: Convert to platform remove callback returning void 2023-03-20 13:07:20 +00:00
atmel-classd.c ASoC: atmel-classd: Drop empty platform remove function 2022-12-25 23:32:43 +00:00
atmel-classd.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-i2s.c ASoC: atmel: atmel-i2s: Convert to platform remove callback returning void 2023-03-20 13:07:19 +00:00
atmel-pcm-dma.c ASoC: atmel-pcm: remove unnecessary include 2020-09-30 16:12:13 +01:00
atmel-pcm-pdc.c ASoC: atmel-pdc: Use managed DMA buffer allocation 2021-01-13 11:36:15 +00:00
atmel-pcm.h ASoC: atmel: atmel-pcm-dma.c: use devm_snd_dmaengine_pcm_register() 2019-06-28 15:08:38 +01:00
atmel-pdmic.c ASoC: atmel-pdmic: Drop empty platform remove function 2022-12-25 23:32:44 +00:00
atmel-pdmic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig ASoC: wm8731: Factor out the I2C and SPI bus code into separate modules 2022-04-04 08:39:32 +01:00
Makefile ASoC: atmel: mchp-pdmc: add PDMC driver 2022-03-08 13:38:59 +00:00
mchp-i2s-mcc.c ASoC: atmel: mchp-i2s-mcc: Convert to platform remove callback returning void 2023-03-20 13:07:21 +00:00
mchp-pdmc.c ASoC: atmel: mchp-pdmc: Convert to platform remove callback returning void 2023-03-20 13:07:22 +00:00
mchp-spdifrx.c ASoC: atmel: mchp-spdifrx: Convert to platform remove callback returning void 2023-03-20 13:07:23 +00:00
mchp-spdiftx.c ASoC: atmel: mchp-spdiftx: Convert to platform remove callback returning void 2023-03-20 13:07:24 +00:00
mikroe-proto.c ASoC: atmel: mikroe-proto: Convert to platform remove callback returning void 2023-03-20 13:07:25 +00:00
sam9g20_wm8731.c ASoC: atmel: sam9g20_wm8731: Convert to platform remove callback returning void 2023-03-20 13:07:26 +00:00
sam9x5_wm8731.c ASoC: atmel: sam9x5_wm8731: Convert to platform remove callback returning void 2023-03-20 13:07:27 +00:00
tse850-pcm5142.c ASoC: atmel: tse850-pcm5142: Convert to platform remove callback returning void 2023-03-20 13:07:28 +00:00