linux/sound/soc/mediatek/mt2701
Uwe Kleine-König b3dff59e57
ASoC: mediatek: mt2701-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-108-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:36 +00:00
..
Makefile ASoC: mediatek: switch to SPDX license tag 2018-04-26 15:09:36 +01:00
mt2701-afe-clock-ctrl.c ASoC: mediatek: switch to SPDX license tag 2018-04-26 15:09:36 +01:00
mt2701-afe-clock-ctrl.h ASoC: mediatek: mt2701: align function prototype 2021-03-12 14:29:52 +00:00
mt2701-afe-common.h ASoC: mediatek: mt2701: Fix -Wunused-const-variable warnings 2019-08-22 18:29:01 +01:00
mt2701-afe-pcm.c ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:36 +00:00
mt2701-cs42448.c ASoC: mediatek: mt2701-cs42448: Register to module device table 2022-11-09 13:44:22 +00:00
mt2701-reg.h ASoC: mediatek: switch to SPDX license tag 2018-04-26 15:09:36 +01:00
mt2701-wm8960.c ASoC: mediatek: mt2701-wm8960: Register to module device table 2022-11-09 13:44:24 +00:00