aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cadence/macb_main.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-10-17 18:08:04 +0000
committersaturneric <[email protected]>2025-10-17 18:08:04 +0000
commit1b56789456e181c054c65c1e7563fbbf98400a3e (patch)
treeadbd81ee3ecc7ec885d63fbff2e8f93b8710b762 /drivers/net/ethernet/cadence/macb_main.c
parentchore(iommu): clean up unused code sections (diff)
downloadkernel-1b56789456e181c054c65c1e7563fbbf98400a3e.tar.gz
kernel-1b56789456e181c054c65c1e7563fbbf98400a3e.zip
chore(macb): remove unused shutdown function
* The `macb_shutdown` function was not utilized in the codebase. * Cleaning up unused code improves maintainability and readability.
Diffstat (limited to 'drivers/net/ethernet/cadence/macb_main.c')
-rw-r--r--drivers/net/ethernet/cadence/macb_main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 9454f7739059..78280f4b96cd 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -5565,19 +5565,6 @@ static void macb_remove(struct platform_device *pdev)
}
}
-static void macb_shutdown(struct platform_device *pdev)
-{
- struct net_device *dev;
-
- dev = platform_get_drvdata(pdev);
-
- rtnl_lock();
- netif_device_detach(dev);
- if (netif_running(dev))
- dev_close(dev);
- rtnl_unlock();
-}
-
static int __maybe_unused macb_suspend(struct device *dev)
{
struct net_device *netdev = dev_get_drvdata(dev);