From 68a064028e4e85b7a9dbfe58fc43b34060c11d39 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Wed, 13 Oct 2021 13:44:33 -0700 Subject: [PATCH] ethernet: ibm/emac: use of_get_ethdev_address() to load dev_addr A straggler I somehow missed in the automated conversion in commit 9ca01b25dfff ("ethernet: use of_get_ethdev_address()"). Use the new helper instead of using netdev->dev_addr directly. Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/ibm/emac/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 8db0ec38bbee..6b3fc8823c54 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -2975,7 +2975,7 @@ static int emac_init_config(struct emac_instance *dev) } /* Read MAC-address */ - err = of_get_mac_address(np, dev->ndev->dev_addr); + err = of_get_ethdev_address(np, dev->ndev); if (err) { if (err != -EPROBE_DEFER) dev_err(&dev->ofdev->dev, "Can't get valid [local-]mac-address from OF !\n"); -- GitLab