ASoC: rockchip: i2s_tdm: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 13 Oct 2023 22:19:47 +0000 (00:19 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Oct 2023 12:29:42 +0000 (13:29 +0100)
commit46dd58bef32dea55b663141858ca1659a85a1505
tree01dc61f52c066129eb1e5f0068f0bb067b9ee98a
parent45f1b12e0366a750d65e92307685964488a3b6f4
ASoC: rockchip: i2s_tdm: 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>
Link: https://lore.kernel.org/r/20231013221945.1489203-10-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s_tdm.c