net: fec_mpc52xx: don't discard const from netdev->dev_addr
authorJakub Kicinski <kuba@kernel.org>
Mon, 24 Jan 2022 17:22:49 +0000 (09:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 11:10:46 +0000 (11:10 +0000)
commit74afa30630976861a1308c5ec93391f8b037a2ae
tree61c56ca0f426726cc4bacdd8da7a6e0074576c09
parentc63003e3d99761afb280add3b30de1cf30fa522b
net: fec_mpc52xx: don't discard const from netdev->dev_addr

Recent changes made netdev->dev_addr const, and it's passed
directly to mpc52xx_fec_set_paddr().

Similar problem exists on the probe patch, the driver needs
to call eth_hw_addr_set().

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: adeef3e32146 ("net: constify netdev->dev_addr")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_mpc52xx.c