linux/sound/soc/amd
Uwe Kleine-König acb5c0b14b
ASoC: amd: ps-sdw-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 ignored (apart
from emitting a warning) 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. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

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>
Link: https://lore.kernel.org/r/20230707072830.3395789-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-07-09 22:47:13 +01:00
..
acp ASoC: amd: acp: fix for invalid dai id handling in acp_get_byte_count() 2023-06-26 13:29:01 +01:00
include
ps ASoC: amd: ps-sdw-dma: Convert to platform remove callback returning void 2023-07-09 22:47:13 +01:00
raven ASoC: amd: update pm_runtime enable sequence 2023-06-23 11:07:39 +01:00
renoir ASoC: amd: update pm_runtime enable sequence 2023-06-23 11:07:39 +01:00
rpl ASoC: amd: enable RPL Platform acp drivers build 2022-07-21 23:25:19 +01:00
vangogh ASoC: amd: update pm_runtime enable sequence 2023-06-23 11:07:39 +01:00
yc ASoC: amd: update pm_runtime enable sequence 2023-06-23 11:07:39 +01:00
acp3x-rt5682-max9836.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp-config.c ASoC: amd: acp: Add support for rt5682s and rt1019 card with hs instance 2022-06-06 12:35:01 +01:00
acp-da7219-max98357a.c ASoC: amd: use use new trigger ordering method 2023-06-13 12:11:20 +01:00
acp-es8336.c ASoC: amd: use use new trigger ordering method 2023-06-13 12:11:20 +01:00
acp-pcm-dma.c ASoC: amd: acp-pcm-dma: Convert to platform remove callback returning void 2023-03-20 13:07:11 +00:00
acp-rt5645.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
Kconfig ASoC: amd: update comments in Kconfig file 2023-06-20 23:30:31 +01:00
mach-config.h ASoC: amd: acp: Add support for nau8825 and max98360 card 2022-06-06 12:35:00 +01:00
Makefile ASoC: amd: enable Pink Sardine acp6.2 drivers build 2022-08-29 23:14:14 +01:00