mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
net: phylink: Fix phylink_err() function name error in phylink_major_config
[ Upstream commitd82c6c1aac] if pl->mac_ops->mac_finish() failed, phylink_err should use "mac_finish" instead of "mac_prepare". Fixes:b7ad14c2fe("net: phylink: re-implement interface configuration with PCS") Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
375f5169f2
commit
ddeba5b39c
@@ -472,7 +472,7 @@ static void phylink_major_config(struct phylink *pl, bool restart,
|
||||
err = pl->mac_ops->mac_finish(pl->config, pl->cur_link_an_mode,
|
||||
state->interface);
|
||||
if (err < 0)
|
||||
phylink_err(pl, "mac_prepare failed: %pe\n",
|
||||
phylink_err(pl, "mac_finish failed: %pe\n",
|
||||
ERR_PTR(err));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user