WSL2-Linux-Kernel/sound/soc/mediatek/mt6797
Uwe Kleine-König edd8a5cde6
ASoC: mediatek: mt6797-afe-pcm: 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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-109-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:37 +00:00
..
Makefile ASoC: mt6797: add Hostless DAI 2018-05-31 11:25:08 +01:00
mt6797-afe-clk.c ASoC: mt6797: switch to SPDX license tag 2018-04-27 11:52:32 +01:00
mt6797-afe-clk.h ASoC: mt6797: switch to SPDX license tag 2018-04-27 11:52:32 +01:00
mt6797-afe-common.h ASoC: mt6797: sub dai use list_head 2018-06-29 13:31:53 +01:00
mt6797-afe-pcm.c ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:37 +00:00
mt6797-dai-adda.c ASoC: mt6797: sub dai use list_head 2018-06-29 13:31:53 +01:00
mt6797-dai-hostless.c ASoC: mt6797: sub dai use list_head 2018-06-29 13:31:53 +01:00
mt6797-dai-pcm.c ASoC: mediatek: use helper function 2023-01-31 11:05:02 +00:00
mt6797-interconnection.h ASoC: mt6797: switch to SPDX license tag 2018-04-27 11:52:32 +01:00
mt6797-mt6351.c ASoC: mediatek: mt6797-mt6351: Register to module device table 2022-11-09 13:44:25 +00:00
mt6797-reg.h ASoC: mt6797: add PCM interface 2018-05-31 11:25:04 +01:00