|
@@ -1511,7 +1511,6 @@ static void mtk_uninit(struct net_device *dev)
|
|
|
struct mtk_eth *eth = mac->hw;
|
|
|
|
|
|
phy_disconnect(mac->phy_dev);
|
|
|
- mtk_mdio_cleanup(eth);
|
|
|
mtk_irq_disable(eth, ~0);
|
|
|
}
|
|
|
|
|
@@ -1916,6 +1915,7 @@ static int mtk_remove(struct platform_device *pdev)
|
|
|
netif_napi_del(ð->tx_napi);
|
|
|
netif_napi_del(ð->rx_napi);
|
|
|
mtk_cleanup(eth);
|
|
|
+ mtk_mdio_cleanup(eth);
|
|
|
platform_set_drvdata(pdev, NULL);
|
|
|
|
|
|
return 0;
|