aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-09-24 10:43:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 15:13:03 +0200
commit9a0749d61a9a999fd15813a8f7db0a7a2451a657 (patch)
tree87321a037f6e48c078e477d31197614f5b6766ed /drivers/usb/dwc3/core.c
parentf3c9fc2b3e541c4aa83775afc10b36a7472f7b14 (diff)
downloadlinux-9a0749d61a9a999fd15813a8f7db0a7a2451a657.tar.gz
linux-9a0749d61a9a999fd15813a8f7db0a7a2451a657.tar.bz2
linux-9a0749d61a9a999fd15813a8f7db0a7a2451a657.zip
usb: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/usb to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20240924084329.53094-2-u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 3612a57f7877..5b8c9bbdd44d 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -2619,7 +2619,7 @@ MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match);
static struct platform_driver dwc3_driver = {
.probe = dwc3_probe,
- .remove_new = dwc3_remove,
+ .remove = dwc3_remove,
.driver = {
.name = "dwc3",
.of_match_table = of_match_ptr(of_dwc3_match),