clk: renesas: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 12 Mar 2023 16:15:05 +0000 (17:15 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 16 Mar 2023 15:54:21 +0000 (16:54 +0100)
commit72cd8436ece036294322fecf91567fef3ce3e868
tree666f916f99bc5b03d6d11b2d3e29d7dcbcb28880
parent1ef48138f90785ba7091fb8fa317039cd3cf9494
clk: renesas: 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: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230312161512.2715500-24-u.kleine-koenig@pengutronix.de
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rcar-usb2-clock-sel.c