net: ethernet: broadcom: bcm63xx_enet: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 27 Dec 2022 21:45:07 +0000 (22:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2022 07:28:49 +0000 (07:28 +0000)
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>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm63xx_enet.c

index d91fdb0c2649d895aa7076910482fb24a0e60e79..2cf96892e5650da9a94fddee0bea2d98ec8e6381 100644 (file)
@@ -2784,17 +2784,11 @@ static int bcm_enet_shared_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int bcm_enet_shared_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
 /* this "shared" driver is needed because both macs share a single
  * address space
  */
 struct platform_driver bcm63xx_enet_shared_driver = {
        .probe  = bcm_enet_shared_probe,
-       .remove = bcm_enet_shared_remove,
        .driver = {
                .name   = "bcm63xx_enet_shared",
                .owner  = THIS_MODULE,