Subject: [PATCH net-next 5/7] ethernet: ibm/emac: use of_get_ethdev_address() to load dev_addr

From: Jakub Kicinski <[email-masked]>
Date: Wed, 13 Oct 2021 13:44:33 -0700

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 <[email-masked]>
---
 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");
-- 
2.31.1