summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-13 13:44:33 -0700
committerJakub Kicinski <kuba@kernel.org>2021-10-14 09:22:23 -0700
commit68a064028e4e85b7a9dbfe58fc43b34060c11d39 (patch)
tree2abb3e8201f16b1a6063ab4dd437da9de780e197
parentc51e5062c18067ccdc85798c2051edfc37e2475d (diff)
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 <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/ibm/emac/core.c2
1 files changed, 1 insertions, 1 deletions
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");