summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-12-13 00:27:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-06 18:37:14 +0300
commit9aa1afc8f62263ed064dc5d94fa7a7ee6054e2ed (patch)
tree531dcbe252d6844f5821d151e8a789d6fb5d3545
parent0376aa62320cab35d8532629fdf9cd3b8cb66c8d (diff)
downloadlinux-9aa1afc8f62263ed064dc5d94fa7a7ee6054e2ed.tar.xz
usb: chipidea: imx: Drop empty platform remove function
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> Link: https://lore.kernel.org/r/20221212212717.3774606-1-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/chipidea/usbmisc_imx.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index acdb13316cd0..c57c1a71a513 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -1263,14 +1263,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,