From 1b56789456e181c054c65c1e7563fbbf98400a3e Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 17 Oct 2025 20:08:04 +0200 Subject: chore(macb): remove unused shutdown function * The `macb_shutdown` function was not utilized in the codebase. * Cleaning up unused code improves maintainability and readability. --- drivers/net/ethernet/cadence/macb_main.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'drivers/net/ethernet/cadence/macb_main.c') 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); -- cgit