developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame^] | 1 | diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c |
| 2 | index 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 | |