|
@@ -1894,11 +1894,8 @@ static void mtk_uninit(struct net_device *dev)
|
|
struct mtk_eth *eth = mac->hw;
|
|
struct mtk_eth *eth = mac->hw;
|
|
|
|
|
|
phy_disconnect(mac->phy_dev);
|
|
phy_disconnect(mac->phy_dev);
|
|
- mtk_mdio_cleanup(eth);
|
|
|
|
mtk_irq_disable(eth, MTK_QDMA_INT_MASK, ~0);
|
|
mtk_irq_disable(eth, MTK_QDMA_INT_MASK, ~0);
|
|
mtk_irq_disable(eth, MTK_PDMA_INT_MASK, ~0);
|
|
mtk_irq_disable(eth, MTK_PDMA_INT_MASK, ~0);
|
|
- free_irq(eth->irq[1], dev);
|
|
|
|
- free_irq(eth->irq[2], dev);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static int mtk_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
static int mtk_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
@@ -2454,6 +2451,7 @@ static int mtk_remove(struct platform_device *pdev)
|
|
netif_napi_del(ð->tx_napi);
|
|
netif_napi_del(ð->tx_napi);
|
|
netif_napi_del(ð->rx_napi);
|
|
netif_napi_del(ð->rx_napi);
|
|
mtk_cleanup(eth);
|
|
mtk_cleanup(eth);
|
|
|
|
+ mtk_mdio_cleanup(eth);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|