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:
Родитель
c51e5062c1
Коммит
68a064028e
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче