Centos-kernel-stream-9/drivers/usb
Martin McConnell 8cdffeb4a3 usb: cdns3: starfive: Convert to platform remove callback returning void
JIRA: https://issues.redhat.com/browse/RHEL-54566

commit 48cb8ff3e250301a5a48925281a7096969ab3a48
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date:   Fri Jul 7 09:36:53 2023 +0200

    usb: cdns3: starfive: 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() is 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>
    Acked-by: Roger Quadros <rogerq@kernel.org>
    Link: https://lore.kernel.org/r/20230707073653.3396988-1-u.kleine-koenig@pengutronix.de
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Martin McConnell <mmcconne@redhat.com>
2024-08-30 12:21:42 +01:00
..
atm usb: ueagle-atm: Use wait_event_freezable_timeout() in uea_wait() 2024-05-29 16:29:56 -03:00
c67x00
cdns3 usb: cdns3: starfive: Convert to platform remove callback returning void 2024-08-30 12:21:42 +01:00
chipidea usb: chipidea: core: handle power lost in workqueue 2024-05-29 16:29:58 -03:00
class USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages 2024-07-14 10:27:41 +00:00
common usb: ulpi: Fix debugfs directory leak 2024-05-29 16:29:58 -03:00
core kcov, usb: disable interrupts in kcov_remote_start_usb_softirq 2024-06-21 14:48:44 -03:00
dwc2
dwc3 Merge: USB/TB code rebase of supported drivers to upstream v6.9 2024-07-03 13:11:49 +00:00
early usb: early: xhci-dbc: use console_is_registered() 2024-05-09 11:25:21 -04:00
gadget usb: udc: remove warning when queue disabled ep 2024-06-18 17:26:54 -03:00
host xhci: Handle TD clearing for multiple streams case 2024-07-15 11:14:58 +00:00
image usb: image: mdc800: Remove redundant assignment to variable retval 2024-06-13 13:57:01 -03:00
isp1760
misc usb: misc: onboard_usb_hub: Disable the USB hub clock on failure 2024-06-18 17:26:54 -03:00
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-05-29 16:29:57 -03:00
mtu3 usb: mtu3: Add MT8195 MTU3 ip-sleep wakeup support 2024-06-13 13:56:58 -03:00
musb
phy Revert "usb: phy: generic: Get the vbus supply" 2024-06-18 17:26:53 -03:00
renesas_usbhs
roles usb: roles: Link the switch to its connector 2024-06-13 13:57:02 -03:00
serial USB: serial: option: add Telit FN920C04 rmnet compositions 2024-06-18 17:26:55 -03:00
storage Merge: CVE-2024-38619: usb-storage: alauda: Check whether the media is initialized 2024-08-02 10:38:20 -04:00
typec usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps 2024-06-21 14:48:43 -03:00
usbip Merge: USB/TB code rebase of supported drivers to upstream v6.8 2024-06-03 19:41:30 +00:00
Kconfig
Makefile
usb-skeleton.c