clk: mediatek: Convert all remaining drivers to platform_driver's .remove_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 30 Apr 2023 19:02:33 +0000 (21:02 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 10 May 2023 21:00:46 +0000 (14:00 -0700)
commita65615df5b458c7dcbbc3f6984a2063e77e445b3
treeb8a68e8078ba66ed341966f83d5e89611d3b1a18
parentb3bc72757e63dbbb3abdb0ab8a4ccf3d9b081cce
clk: mediatek: Convert all remaining drivers to platform_driver's .remove_new()

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 all mediatek clk drivers 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/20230430190233.878921-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
16 files changed:
drivers/clk/mediatek/clk-mt2712-apmixedsys.c
drivers/clk/mediatek/clk-mt6795-apmixedsys.c
drivers/clk/mediatek/clk-mt6795-infracfg.c
drivers/clk/mediatek/clk-mt6795-pericfg.c
drivers/clk/mediatek/clk-mt7622-apmixedsys.c
drivers/clk/mediatek/clk-mt7622-infracfg.c
drivers/clk/mediatek/clk-mt8135-apmixedsys.c
drivers/clk/mediatek/clk-mt8173-apmixedsys.c
drivers/clk/mediatek/clk-mt8173-infracfg.c
drivers/clk/mediatek/clk-mt8186-apmixedsys.c
drivers/clk/mediatek/clk-mt8188-apmixedsys.c
drivers/clk/mediatek/clk-mt8188-topckgen.c
drivers/clk/mediatek/clk-mt8192-apmixedsys.c
drivers/clk/mediatek/clk-mt8195-apmixedsys.c
drivers/clk/mediatek/clk-mt8195-apusys_pll.c
drivers/clk/mediatek/clk-mt8195-topckgen.c