diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-01-25 16:37:58 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-26 15:40:01 +0000 |
commit | 7f6ec2b2f01b45b39cd2ffcd49fdb30d0b6c626d (patch) | |
tree | c705f49c9957948fba8007cd52a8b509dcc20cad /drivers | |
parent | 14ba66a60fbfbe69bb7faf6b45e9803c2efd7a23 (diff) | |
download | linux-starfive-7f6ec2b2f01b45b39cd2ffcd49fdb30d0b6c626d.tar.gz linux-starfive-7f6ec2b2f01b45b39cd2ffcd49fdb30d0b6c626d.tar.bz2 linux-starfive-7f6ec2b2f01b45b39cd2ffcd49fdb30d0b6c626d.zip |
ethernet: broadcom/sb1250-mac: don't write directly to netdev->dev_addr
netdev->dev_addr is const now.
Compile tested bigsur_defconfig and sb1250_swarm_defconfig.
Fixes: adeef3e32146 ("net: constify netdev->dev_addr")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/broadcom/sb1250-mac.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c index f38f40eb966e..a1a38456c9a3 100644 --- a/drivers/net/ethernet/broadcom/sb1250-mac.c +++ b/drivers/net/ethernet/broadcom/sb1250-mac.c @@ -2183,9 +2183,7 @@ static int sbmac_init(struct platform_device *pldev, long long base) ea_reg >>= 8; } - for (i = 0; i < 6; i++) { - dev->dev_addr[i] = eaddr[i]; - } + eth_hw_addr_set(dev, eaddr); /* * Initialize context (get pointers to registers and stuff), then |