linux/sound/soc/amd
Uwe Kleine-König 37846af6d0
ASoC: amd: acp: rembrandt: 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-17-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:12 +00:00
..
acp ASoC: amd: acp: rembrandt: Convert to platform remove callback returning void 2023-03-20 13:07:12 +00:00
include
ps ASoC: amd: ps: Add a module parameter to influence pdm_gain 2023-02-02 11:42:26 +00:00
raven ASoC: amd: Drop empty platform remove function 2022-12-25 23:32:42 +00:00
renoir ASoC: amd: renoir: Add a module parameter to influence pdm_gain 2023-02-02 11:42:24 +00:00
rpl ASoC: amd: enable RPL Platform acp drivers build 2022-07-21 23:25:19 +01:00
vangogh ASoC: amd: vangogh: Add components prefix in structs and function names 2023-03-05 23:37:25 +00:00
yc ASoC: Fixes for v6.3 2023-03-03 14:21:13 +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: Drop da7219_aad_jack_det() usage 2022-11-07 13:58:17 +00:00
acp-es8336.c ASoC: amd: acp-es8336: Drop reference count of ACPI device after use 2023-01-12 12:23:32 +00: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: fix ACP version typo mistake 2022-11-04 12:25:08 +00: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