linux/drivers/clk/starfive
Uwe Kleine-König d963f25734 clk: starfive: jh7110-vout: 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 ignored (apart
from emitting a warning) 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. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

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/90054b8b2e118bc04ec37e044d0ac518bb177cf4.1709721042.git.u.kleine-koenig@pengutronix.de
Reviewed-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2024-03-08 15:18:36 -08:00
..
clk-starfive-jh71x0.c clk: starfive: Simplify .determine_rate() 2023-07-19 12:50:42 -07:00
clk-starfive-jh71x0.h clk: starfive: Add flags argument to JH71X0__MUX macro 2024-01-03 15:51:55 -08:00
clk-starfive-jh7100-audio.c clk: starfive: Add flags argument to JH71X0__MUX macro 2024-01-03 15:51:55 -08:00
clk-starfive-jh7100.c clk: starfive: jh7100: Add CLK_SET_RATE_PARENT to gmac_tx 2024-01-03 15:51:58 -08:00
clk-starfive-jh7110-aon.c clk: starfive: Add flags argument to JH71X0__MUX macro 2024-01-03 15:51:55 -08:00
clk-starfive-jh7110-isp.c clk: starfive: jh7110-isp: Convert to platform remove callback returning void 2024-03-08 15:18:36 -08:00
clk-starfive-jh7110-pll.c clk: starfive: Add StarFive JH7110 PLL clock driver 2023-07-19 18:08:00 +01:00
clk-starfive-jh7110-stg.c clk: starfive: Add StarFive JH7110 System-Top-Group clock driver 2023-07-19 18:08:05 +01:00
clk-starfive-jh7110-sys.c clk: starfive: Add flags argument to JH71X0__MUX macro 2024-01-03 15:51:55 -08:00
clk-starfive-jh7110-vout.c clk: starfive: jh7110-vout: Convert to platform remove callback returning void 2024-03-08 15:18:36 -08:00
clk-starfive-jh7110.h clk: starfive: Add StarFive JH7110 Image-Signal-Process clock driver 2023-07-19 18:08:05 +01:00
Kconfig clk: starfive: Add StarFive JH7110 Video-Output clock driver 2023-07-19 18:08:05 +01:00
Makefile clk: starfive: Add StarFive JH7110 Video-Output clock driver 2023-07-19 18:08:05 +01:00