diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-07 20:18:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-08 15:54:34 +0200 |
commit | 4d04cdc5ee4961022b1bdc76b76132787b8c9e5b (patch) | |
tree | 5eabc94964640c912a93b6517cd7ca34d704f746 /drivers/net/ethernet/actions | |
parent | eth: platform: add a helper for loading netdev->dev_addr (diff) | |
download | linux-4d04cdc5ee4961022b1bdc76b76132787b8c9e5b.tar.xz linux-4d04cdc5ee4961022b1bdc76b76132787b8c9e5b.zip |
ethernet: use platform_get_ethdev_address()
Use the new platform_get_ethdev_address() helper for the cases
where dev->dev_addr is passed in directly as the destination.
@@
expression dev, net;
@@
- eth_platform_get_mac_address(dev, net->dev_addr)
+ platform_get_ethdev_address(dev, net)
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/actions')
-rw-r--r-- | drivers/net/ethernet/actions/owl-emac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/actions/owl-emac.c b/drivers/net/ethernet/actions/owl-emac.c index 2c25ff3623cd..dce93acd1644 100644 --- a/drivers/net/ethernet/actions/owl-emac.c +++ b/drivers/net/ethernet/actions/owl-emac.c @@ -1385,7 +1385,7 @@ static void owl_emac_get_mac_addr(struct net_device *netdev) struct device *dev = netdev->dev.parent; int ret; - ret = eth_platform_get_mac_address(dev, netdev->dev_addr); + ret = platform_get_ethdev_address(dev, netdev); if (!ret && is_valid_ether_addr(netdev->dev_addr)) return; |