WSL2-Linux-Kernel/sound/soc/amd/renoir
Uwe Kleine-König 725d4edfa5
ASoC: amd: raven: acp3x-pdm-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-21-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:16 +00:00
..
Makefile AsoC: amd: add missing snd- module prefix to the acp3x-rn driver kernel module 2020-06-25 15:06:56 +01:00
acp3x-pdm-dma.c ASoC: amd: raven: acp3x-pdm-dma: Convert to platform remove callback returning void 2023-03-20 13:07:16 +00:00
acp3x-rn.c ASoC: amd: Don't show messages about deferred probing by default 2021-07-23 14:52:49 +01:00
rn-pci-acp3x.c ASoC: amd: renoir: Add check for acp configuration flags 2022-01-28 15:59:35 +00:00
rn_acp3x.h ASoC: amd: renoir: Add a module parameter to influence pdm_gain 2023-02-02 11:42:24 +00:00
rn_chip_offset_byte.h ASoC: amd: add Renoir ACP3x IP register header 2020-05-19 13:45:25 +01:00