Commit d82c6c1a authored by Ong Boon Leong's avatar Ong Boon Leong Committed by David S. Miller

net: phylink: Fix phylink_err() function name error in phylink_major_config

if pl->mac_ops->mac_finish() failed, phylink_err should use
"mac_finish" instead of "mac_prepare".

Fixes: b7ad14c2 ("net: phylink: re-implement interface configuration with PCS")
Signed-off-by: default avatarOng Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf0ffea3
...@@ -476,7 +476,7 @@ static void phylink_major_config(struct phylink *pl, bool restart, ...@@ -476,7 +476,7 @@ static void phylink_major_config(struct phylink *pl, bool restart,
err = pl->mac_ops->mac_finish(pl->config, pl->cur_link_an_mode, err = pl->mac_ops->mac_finish(pl->config, pl->cur_link_an_mode,
state->interface); state->interface);
if (err < 0) if (err < 0)
phylink_err(pl, "mac_prepare failed: %pe\n", phylink_err(pl, "mac_finish failed: %pe\n",
ERR_PTR(err)); ERR_PTR(err));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment