linux/drivers/phy/broadcom
Uwe Kleine-König b762d7d39d phy: broadcom: phy-brcm-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>
Reviewed-by: Justin Chen <justinpopo6@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230307115900.2293120-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-03-20 18:14:56 +05:30
..
Kconfig arm64: bcmbca: Make BCM4908 drivers depend on ARCH_BCMBCA 2022-08-15 09:55:34 -07:00
Makefile phy: bcm63xx-usbh: Add BCM63xx USBH driver 2020-07-21 22:59:58 +05:30
phy-bcm63xx-usbh.c phy: bcm63xx-usbh: Add BCM63xx USBH driver 2020-07-21 22:59:58 +05:30
phy-bcm-cygnus-pcie.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
phy-bcm-kona-usb2.c phy: broadcom: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30
phy-bcm-ns2-pcie.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
phy-bcm-ns2-usbdrd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
phy-bcm-ns-usb2.c phy: bcm-ns-usb2: improve printing ref clk errors 2021-11-25 10:45:04 +05:30
phy-bcm-ns-usb3.c net: Convert more users of mdiobus_* to mdiodev_* 2021-10-24 13:40:33 +01:00
phy-bcm-sr-pcie.c phy: broadcom: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30
phy-bcm-sr-usb.c phy: broadcom: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30
phy-brcm-sata.c phy: phy-brcm-sata: remove unneeded semicolon 2021-02-04 13:37:26 +05:30
phy-brcm-usb-init-synopsys.c phy: usb: Fix clock imbalance for suspend/resume 2022-11-07 10:20:25 +05:30
phy-brcm-usb-init.c phy: usb: Migrate to BIT and BITMASK macros 2022-11-07 10:20:24 +05:30
phy-brcm-usb-init.h phy: usb: Fix clock imbalance for suspend/resume 2022-11-07 10:20:25 +05:30
phy-brcm-usb.c phy: broadcom: phy-brcm-usb: Convert to platform remove callback returning void 2023-03-20 18:14:56 +05:30