linux/drivers/phy/allwinner
Uwe Kleine-König b4700ed86f phy: allwinner: phy-sun4i-usb: 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>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230307115900.2293120-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-03-20 18:14:55 +05:30
..
Kconfig phy: allwinner: Make PHY_SUN6I_MIPI_DPHY depend on COMMON_CLK 2020-07-13 10:40:53 +05:30
Makefile phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC 2019-10-31 16:54:00 +05:30
phy-sun4i-usb.c phy: allwinner: phy-sun4i-usb: Convert to platform remove callback returning void 2023-03-20 18:14:55 +05:30
phy-sun6i-mipi-dphy.c phy: allwinner: phy-sun6i-mipi-dphy: Add the A100 DPHY variant 2022-11-24 23:04:24 +05:30
phy-sun9i-usb.c phy: allwinner: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30
phy-sun50i-usb3.c phy: allwinner: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30