linux/sound/soc/amd/vangogh
Uwe Kleine-König 8564d4f22c
ASoC: amd: vangogh: acp5x-pcm-dma: 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-22-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:17 +00:00
..
acp5x-i2s.c ASoC: amd: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:30 +01:00
acp5x-mach.c ASoC: amd: vangogh: Add components prefix in structs and function names 2023-03-05 23:37:25 +00:00
acp5x-pcm-dma.c ASoC: amd: vangogh: acp5x-pcm-dma: Convert to platform remove callback returning void 2023-03-20 13:07:17 +00:00
acp5x.h ASoC: Updates for v5.18 2022-03-21 16:19:21 +01:00
Makefile ASoC: amd: enable vangogh platform machine driver build 2021-10-15 16:10:55 +01:00
pci-acp5x.c ASoC: amd: vg: update acp init and deinit sequence 2022-02-24 02:04:30 +00:00
vg_chip_offset_byte.h