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: adeef3e321 ("net: constify netdev->dev_addr")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jakub Kicinski 2022-01-25 16:37:58 -08:00 коммит произвёл David S. Miller
Родитель 14ba66a60f
Коммит 7f6ec2b2f0
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -2183,9 +2183,7 @@ static int sbmac_init(struct platform_device *pldev, long long base)
ea_reg >>= 8; ea_reg >>= 8;
} }
for (i = 0; i < 6; i++) { eth_hw_addr_set(dev, eaddr);
dev->dev_addr[i] = eaddr[i];
}
/* /*
* Initialize context (get pointers to registers and stuff), then * Initialize context (get pointers to registers and stuff), then