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

A straggler I somehow missed in the automated conversion in
commit 9ca01b25df ("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>
This commit is contained in:
Jakub Kicinski 2021-10-13 13:44:33 -07:00
Родитель c51e5062c1
Коммит 68a064028e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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");