linux/sound/soc/amd/raven
Uwe Kleine-König 599914e146
ASoC: amd: raven: acp3x-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-20-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:15 +00:00
..
acp3x-i2s.c ASoC: amd: Drop empty platform remove function 2022-12-25 23:32:42 +00:00
acp3x-pcm-dma.c ASoC: amd: raven: acp3x-pcm-dma: Convert to platform remove callback returning void 2023-03-20 13:07:15 +00:00
acp3x.h ASoC: amd: acp3x: Fix signedness bug in acp3x 2022-03-08 12:27:56 +00:00
chip_offset_byte.h ASoC: amd: Switch to SPDX identifier 2018-11-15 11:19:04 -08:00
Makefile ASoC: amd: Refactoring of DAI from DMA driver 2019-12-31 00:22:12 +00:00
pci-acp3x.c ASoC: amd: fix for pcm_read() error 2021-04-28 16:34:55 +01:00