1 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
2 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
3 @@ -1112,17 +1112,6 @@ static void mtk_wake_queue(struct mtk_et
7 -static void mtk_stop_queue(struct mtk_eth *eth)
11 - for (i = 0; i < MTK_MAC_COUNT; i++) {
12 - if (!eth->netdev[i])
14 - netif_stop_queue(eth->netdev[i]);
18 static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev)
20 struct mtk_mac *mac = netdev_priv(dev);
21 @@ -1143,7 +1132,7 @@ static int mtk_start_xmit(struct sk_buff
23 tx_num = mtk_cal_txd_req(skb);
24 if (unlikely(atomic_read(&ring->free_count) <= tx_num)) {
25 - mtk_stop_queue(eth);
26 + netif_stop_queue(dev);
27 netif_err(eth, tx_queued, dev,
28 "Tx Ring full when queue awake!\n");
29 spin_unlock(ð->page_lock);
30 @@ -1169,7 +1158,7 @@ static int mtk_start_xmit(struct sk_buff
33 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh))
34 - mtk_stop_queue(eth);
35 + netif_stop_queue(dev);
37 spin_unlock(ð->page_lock);