summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/litex/litex_liteeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/litex/litex_liteeth.c')
-rw-r--r--drivers/net/ethernet/litex/litex_liteeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/litex/litex_liteeth.c b/drivers/net/ethernet/litex/litex_liteeth.c
index a9bdbf0dcfe1..3d9385a4989b 100644
--- a/drivers/net/ethernet/litex/litex_liteeth.c
+++ b/drivers/net/ethernet/litex/litex_liteeth.c
@@ -266,7 +266,7 @@ static int liteeth_probe(struct platform_device *pdev)
priv->tx_base = buf_base + priv->num_rx_slots * priv->slot_size;
priv->tx_slot = 0;
- err = of_get_mac_address(pdev->dev.of_node, netdev->dev_addr);
+ err = of_get_ethdev_address(pdev->dev.of_node, netdev);
if (err)
eth_hw_addr_random(netdev);