mirror_ubuntu-kernels/drivers/usb/host
Uwe Kleine-König 18cb7c4d53 usb: uhci-grlib: 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>
Link: https://lore.kernel.org/r/20230517230239.187727-80-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-28 12:36:32 +01:00
..
bcma-hcd.c USB: bcma: Make GPIO explicitly optional 2022-11-08 16:39:56 +01:00
ehci-atmel.c usb: ehci-atmel: Convert to platform remove callback returning void 2023-05-28 12:36:27 +01:00
ehci-brcm.c usb: ehci-brcm: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-dbg.c
ehci-exynos.c usb: ehci-exynos: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-fsl.c usb: ehci-fsl: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-fsl.h
ehci-grlib.c usb: ehci-grlib: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-hcd.c usb: reduce kernel log spam on driver registration 2022-08-31 09:07:53 +02:00
ehci-hub.c
ehci-mem.c
ehci-mv.c usb: ehci-mv: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-npcm7xx.c usb: ehci-npcm7xx: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-omap.c usb: ehci-omap: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-orion.c usb: ehci-orion: Convert to platform remove callback returning void 2023-05-28 12:36:28 +01:00
ehci-pci.c USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
ehci-platform.c usb: ehci-platform: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci-ppc-of.c usb: ehci-ppc-of: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci-ps3.c
ehci-q.c usb: ehci: Use endpoint in URB to get maxpacket 2022-08-31 09:07:53 +02:00
ehci-sched.c
ehci-sh.c usb: ehci-sh: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci-spear.c usb: ehci-spear: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci-st.c usb: ehci-st: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci-sysfs.c
ehci-timer.c
ehci-xilinx-of.c usb: ehci-xilinx-of: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
ehci.h usb: host: fix a typo in ehci.h 2022-11-29 08:56:09 +01:00
fhci-dbg.c
fhci-hcd.c USB/Thunderbolt driver changes for 6.2-rc1 2022-12-16 03:22:53 -08:00
fhci-hub.c USB: FHCI: Switch to GPIO descriptors 2022-09-01 16:08:29 +02:00
fhci-mem.c
fhci-q.c
fhci-sched.c
fhci-tds.c
fhci.h USB: FHCI: Switch to GPIO descriptors 2022-09-01 16:08:29 +02:00
fsl-mph-dr-of.c usb: fsl-mph-dr-of: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
isp116x-hcd.c usb: isp116x-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:29 +01:00
isp116x.h
isp1362-hcd.c usb: isp1362-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
isp1362.h
Kconfig usb: host: u132-hcd: Delete driver 2023-03-21 14:06:11 +01:00
Makefile usb: host: u132-hcd: Delete driver 2023-03-21 14:06:11 +01:00
max3421-hcd.c usb: host: max3421-hcd: drop of_match_ptr for ID table 2023-03-16 12:15:23 +01:00
octeon-hcd.c usb: octeon-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
octeon-hcd.h staging: octeon-usb: move driver out of staging 2022-06-21 16:43:37 +02:00
ohci-at91.c usb: ohci-at91: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-da8xx.c usb: ohci-da8xx: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-dbg.c
ohci-exynos.c usb: ohci-exynos: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-hcd.c usb: remove ohci-tmio driver 2023-02-01 17:23:38 +01:00
ohci-hub.c
ohci-mem.c
ohci-nxp.c usb: ohci-nxp: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-omap.c usb: ohci-omap: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-pci.c USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
ohci-platform.c usb: ohci-platform: Convert to platform remove callback returning void 2023-05-28 12:36:30 +01:00
ohci-ppc-of.c usb: ohci-ppc-of: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci-ps3.c
ohci-pxa27x.c usb: ohci-pxa27x: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci-q.c
ohci-s3c2410.c usb: ohci-s3c2410: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci-sa1111.c ARM: sa1100: remove unused board files 2023-01-12 10:53:12 +01:00
ohci-sm501.c usb: ohci-sm501: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci-spear.c usb: ohci-spear: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci-st.c usb: ohci-st: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
ohci.h
oxu210hp-hcd.c usb: oxu210hp-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
pci-quirks.c usb: pci-quirks: Reduce the length of a spinlock section in usb_amd_find_chipset_info() 2023-03-29 09:02:19 +02:00
pci-quirks.h
r8a66597-hcd.c usb: r8a66597-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:31 +01:00
r8a66597.h
sl811_cs.c
sl811-hcd.c usb: sl811-hcd: Convert to platform remove callback returning void 2023-05-28 12:36:32 +01:00
sl811.h
ssb-hcd.c
uhci-debug.c
uhci-grlib.c usb: uhci-grlib: Convert to platform remove callback returning void 2023-05-28 12:36:32 +01:00
uhci-hcd.c USB: uhci: fix memory leak with using debugfs_lookup() 2023-02-06 13:46:42 +01:00
uhci-hcd.h usb/host: fix repeated words in comments 2022-07-27 14:33:33 +02:00
uhci-hub.c
uhci-pci.c USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
uhci-platform.c
uhci-q.c
xen-hcd.c xen: make remove callback of xen driver void returned 2022-12-15 16:06:10 +01:00
xhci-dbg.c
xhci-dbgcap.c xhci: dbc: Provide sysfs option to configure dbc descriptors 2023-03-23 17:25:22 +01:00
xhci-dbgcap.h xhci: dbc: Provide sysfs option to configure dbc descriptors 2023-03-23 17:25:22 +01:00
xhci-dbgtty.c
xhci-debugfs.c xhci: fix debugfs register accesses while suspended 2023-04-20 10:13:06 +02:00
xhci-debugfs.h
xhci-ext-caps.c
xhci-ext-caps.h
xhci-histb.c USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
xhci-hub.c xhci: decouple usb2 port resume and get_port_status request handling 2023-02-02 16:44:42 +01:00
xhci-mem.c xhci: mem: Join string literals back 2023-03-23 17:25:22 +01:00
xhci-mtk-sch.c usb: xhci-mtk: fix bandwidth release issue 2022-08-19 10:39:08 +02:00
xhci-mtk.c usb: xhci-mtk: add optional frame count clock 2023-04-20 10:13:39 +02:00
xhci-mtk.h usb: xhci-mtk: add optional frame count clock 2023-04-20 10:13:39 +02:00
xhci-mvebu.c usb: host: xhci: mvebu: Iterate over array indexes instead of using pointer math 2023-02-06 13:46:42 +01:00
xhci-mvebu.h Revert "usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada 3720" 2022-02-25 19:12:21 +05:30
xhci-pci-renesas.c usb: renesas-xhci: Do not print any log while fw verif success 2022-07-27 14:37:48 +02:00
xhci-pci.c USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
xhci-pci.h
xhci-plat.c usb: xhci: plat: remove error log for failure to get usb-phy 2023-05-13 18:05:43 +09:00
xhci-plat.h xhci: split out rcar/rz support from xhci-plat.c 2023-02-02 11:12:59 +01:00
xhci-rcar.c usb: host: xhci-rcar: drop of_match_ptr for ID table 2023-03-16 12:15:22 +01:00
xhci-ring.c xhci: Move functions to setup msi to xhci-pci 2023-03-23 17:25:22 +01:00
xhci-rzv2m.c xhci: host: Add Renesas RZ/V2M SoC support 2023-01-25 15:48:17 +01:00
xhci-rzv2m.h xhci: host: Add Renesas RZ/V2M SoC support 2023-01-25 15:48:17 +01:00
xhci-tegra.c usb: xhci: tegra: enable stream protocol support 2023-05-13 18:05:53 +09:00
xhci-trace.c xhci: Move functions to setup msi to xhci-pci 2023-03-23 17:25:22 +01:00
xhci-trace.h usb: xhci: change some trace event __dynamic_array() to __get_buf() 2023-03-09 15:35:03 +01:00
xhci.c xhci: Improve the XHCI system resume time 2023-05-13 17:33:18 +09:00
xhci.h USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00