diff options
| author | saturneric <[email protected]> | 2025-10-17 18:08:04 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-10-17 18:08:04 +0000 |
| commit | 1b56789456e181c054c65c1e7563fbbf98400a3e (patch) | |
| tree | adbd81ee3ecc7ec885d63fbff2e8f93b8710b762 | |
| parent | chore(iommu): clean up unused code sections (diff) | |
| download | kernel-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.
| -rw-r--r-- | drivers/net/ethernet/cadence/macb_main.c | 13 |
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); |
