diff mbox series

usb: chipidea: imx: Drop empty platform remove function

Message ID 20221212212717.3774606-1-u.kleine-koenig@pengutronix.de (mailing list archive)
State Accepted
Commit 9aa1afc8f62263ed064dc5d94fa7a7ee6054e2ed
Headers show
Series usb: chipidea: imx: Drop empty platform remove function | expand

Commit Message

Uwe Kleine-König Dec. 12, 2022, 9:27 p.m. UTC
A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/usb/chipidea/usbmisc_imx.c | 6 ------
 1 file changed, 6 deletions(-)


base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476
diff mbox series

Patch

diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index bac0f5458cab..d09473a39424 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -1163,14 +1163,8 @@  static int usbmisc_imx_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int usbmisc_imx_remove(struct platform_device *pdev)
-{
-	return 0;
-}
-
 static struct platform_driver usbmisc_imx_driver = {
 	.probe = usbmisc_imx_probe,
-	.remove = usbmisc_imx_remove,
 	.driver = {
 		.name = "usbmisc_imx",
 		.of_match_table = usbmisc_imx_dt_ids,