aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-11-20 21:58:35 +0000
committerGreg Kroah-Hartman <[email protected]>2023-11-22 12:02:53 +0000
commit5d888fee4adefbc24bad8eb1091238090ac35e26 (patch)
tree02c6497adf8d03ff4cbb5290f9b7579d3b9e3854 /drivers/usb/cdns3/cdns3-gadget.c
parentusb: gadget: gr_udc: Convert to platform remove callback returning void (diff)
downloadkernel-5d888fee4adefbc24bad8eb1091238090ac35e26.tar.gz
kernel-5d888fee4adefbc24bad8eb1091238090ac35e26.zip
usb: gadget: lpc32xx_udc: 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(). In the error path emit an error message replacing the (less useful) message by the core. Apart from the improved error message there is no change in behaviour. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions