aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
diff options
context:
space:
mode:
authorMaxime Chevallier <[email protected]>2024-09-04 17:18:16 +0000
committerDavid S. Miller <[email protected]>2024-09-09 09:29:04 +0000
commit96bf0c4e9f485e286fef7c6677f16f37e7a7ff7c (patch)
treee09b38ab1ebd88e4389c8dd802a83f05a82b5bba /drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
parentnet: ethernet: fs_enet: cosmetic cleanups (diff)
downloadkernel-96bf0c4e9f485e286fef7c6677f16f37e7a7ff7c.tar.gz
kernel-96bf0c4e9f485e286fef7c6677f16f37e7a7ff7c.zip
net: ethernet: fs_enet: drop the .adjust_link custom fs_ops
There's no in-tree user for the fs_ops .adjust_link() function, so we can always use the generic one in fe_enet-main. Acked-by: Christophe Leroy <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Maxime Chevallier <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c')
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
index 2b48a2a5e32d..caca81b3ccb6 100644
--- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
+++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
@@ -649,12 +649,7 @@ static void fs_adjust_link(struct net_device *dev)
unsigned long flags;
spin_lock_irqsave(&fep->lock, flags);
-
- if (fep->ops->adjust_link)
- fep->ops->adjust_link(dev);
- else
- generic_adjust_link(dev);
-
+ generic_adjust_link(dev);
spin_unlock_irqrestore(&fep->lock, flags);
}