mirror-linux/sound/soc/amd/acp
Uwe Kleine-König da8a3ceb45
ASoC: amd: acp: renoir: 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-18-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:13 +00:00
..
Kconfig ASoC: amd: acp: Add legacy audio driver support for Rembrandt platform 2022-07-08 18:53:15 +01:00
Makefile ASoC: amd: acp: Add legacy audio driver support for Rembrandt platform 2022-07-08 18:53:15 +01:00
acp-i2s.c ASoC: amd: acp: Add TDM slots setting support for ACP I2S controller 2022-10-18 19:16:48 +01:00
acp-legacy-mach.c ASoC: amd: acp: Enable i2s tdm support for skyrim platforms 2023-01-11 18:28:56 +00:00
acp-mach-common.c ASoC: amd: acp: Refactor bit width calculation 2023-01-30 13:35:00 +00:00
acp-mach.h ASoC: amd: acp: Enable i2s tdm support for skyrim platforms 2023-01-11 18:28:56 +00:00
acp-pci.c ASoC: amd: acp: use devm_kcalloc() instead of devm_kzalloc() 2022-09-19 17:52:37 +01:00
acp-pdm.c ASoC: amd: acp: ACP code generic to support newer platforms 2022-07-08 18:53:14 +01:00
acp-platform.c ASoC: amd: acp: Fix possible UAF in acp_dma_open 2022-11-18 11:50:29 +00:00
acp-rembrandt.c ASoC: amd: acp: rembrandt: Convert to platform remove callback returning void 2023-03-20 13:07:12 +00:00
acp-renoir.c ASoC: amd: acp: renoir: Convert to platform remove callback returning void 2023-03-20 13:07:13 +00:00
acp-sof-mach.c ASoC: amd: acp: Enable i2s tdm support for skyrim platforms 2023-01-11 18:28:56 +00:00
amd.h ASoC: amd: acp: Modify dai_id macros to be more generic 2022-08-28 22:04:03 +01:00
chip_offset_byte.h ASoC: amd: acp: Add legacy audio driver support for Rembrandt platform 2022-07-08 18:53:15 +01:00