OpenCloudOS-Kernel/sound/soc/mediatek/mt8188
Uwe Kleine-König bb5ba5fe26
ASoC: mediatek: mt8188-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>
Acked-by: Trevor Wu <trevor.wu@mediatek.com>
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-112-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:40 +00:00
..
Makefile ASoC: mediatek: mt8188: add machine driver with mt6359 2023-01-16 11:16:30 +00:00
mt8188-afe-clk.c ASoC: mediatek: mt8188: support audio clock control 2023-01-16 11:16:25 +00:00
mt8188-afe-clk.h ASoC: mediatek: mt8188: support audio clock control 2023-01-16 11:16:25 +00:00
mt8188-afe-common.h
mt8188-afe-pcm.c ASoC: mediatek: mt8188-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:40 +00:00
mt8188-audsys-clk.c
mt8188-audsys-clk.h
mt8188-audsys-clkid.h
mt8188-dai-adda.c ASoC: mediatek: mt8188: support adda in platform driver 2023-01-16 11:16:23 +00:00
mt8188-dai-etdm.c ASoC: mediatek: mt8188: add missing initialization 2023-03-01 14:49:16 +00:00
mt8188-dai-pcm.c ASoC: mediatek: use helper function 2023-01-31 11:05:02 +00:00
mt8188-mt6359.c ASoC: mediatek: mt8188: add machine driver with mt6359 2023-01-16 11:16:30 +00:00
mt8188-reg.h