diff options
| author | Jakub Kicinski <[email protected]> | 2021-10-07 01:06:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-10-07 12:39:51 +0000 |
| commit | 9ca01b25dffffecf6c59339aad6b4736680e9fa3 (patch) | |
| tree | 09db4109c0c73f94baa22101c10af5a01f61fcdf /drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | |
| parent | of: net: add a helper for loading netdev->dev_addr (diff) | |
| download | kernel-9ca01b25dffffecf6c59339aad6b4736680e9fa3.tar.gz kernel-9ca01b25dffffecf6c59339aad6b4736680e9fa3.zip | |
ethernet: use of_get_ethdev_address()
Use the new of_get_ethdev_address() helper for the cases
where dev->dev_addr is passed in directly as the destination.
@@
expression dev, np;
@@
- of_get_mac_address(np, dev->dev_addr)
+ of_get_ethdev_address(np, dev)
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c')
| -rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index 2db6e38a772e..bacf25318f87 100644 --- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c @@ -1005,7 +1005,7 @@ static int fs_enet_probe(struct platform_device *ofdev) spin_lock_init(&fep->lock); spin_lock_init(&fep->tx_lock); - of_get_mac_address(ofdev->dev.of_node, ndev->dev_addr); + of_get_ethdev_address(ofdev->dev.of_node, ndev); ret = fep->ops->allocate_bd(ndev); if (ret) |
