]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite21ec5256e1ca26390f3fa19431dd343ab8fa314
tree61c56ca0f426726cc4bacdd8da7a6e0074576c09
parent81e076720e49962747d93d43c8479e95bfe79c3a
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: 428867d3387c ("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