usb: chipidea: imx: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 12 Dec 2022 21:27:17 +0000 (22:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2023 15:37:14 +0000 (16:37 +0100)
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>
drivers/usb/chipidea/usbmisc_imx.c

index acdb133..c57c1a7 100644 (file)
@@ -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,