Commit 68a06402 authored by Jakub Kicinski's avatar Jakub Kicinski

ethernet: ibm/emac: use of_get_ethdev_address() to load dev_addr

A straggler I somehow missed in the automated conversion in
commit 9ca01b25 ("ethernet: use of_get_ethdev_address()").
Use the new helper instead of using netdev->dev_addr directly.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c51e5062
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment