net: fec: remove fec_set_mac_address() from fec_enet_init()
authorWei Fang <wei.fang@nxp.com>
Tue, 18 Jul 2023 09:09:27 +0000 (17:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 03:59:16 +0000 (20:59 -0700)
commit36bde9c1accb8f7aa908b9c04c0769251629e6fd
tree0a949ee7cc6b8f1ce99e155e78ea653b5782d41d
parent3b23ecd53ab5cc46965bc49dece460c0e85ddaac
net: fec: remove fec_set_mac_address() from fec_enet_init()

The fec_enet_init() is only invoked when the FEC driver probes, and
the network device of FEC is not been brought up at this moment. So
the fec_set_mac_address() does nothing and just returns zero when it
is invoked in the fec_enet_init(). Actually, the MAC address is set
into the hardware through fec_restart() which is also called in the
fec_enet_init().

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://lore.kernel.org/r/20230718090928.2654347-3-wei.fang@nxp.com
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c