]> 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)
commitb4c9ef06c9fb703b7e6e41731849986dd58a71aa
tree61c56ca0f426726cc4bacdd8da7a6e0074576c09
parent4d9edff33e0bfc0902cf11d93ac1ace0944ad374
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: 7e08762fb607 ("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