blob: 50eea64080044f937ae9f659a4e140bc8465f69d [file] [log] [blame]
developerec4ebe42022-04-12 11:17:45 +08001diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
2index 1bf43b3..3001525 100755
3--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
4+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
5@@ -3395,6 +3395,7 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
6
7 eth->netdev[id]->irq = eth->irq[0];
8 eth->netdev[id]->dev.of_node = np;
9+ sprintf (eth->netdev[id]->name, "eth%d",id+1);
10
11 return 0;
12