Commit 2c22e42e authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller

net: ethernet: ti: cpsw_new: Switch to use dev_err_probe() helper

dev_err() can be replace with dev_err_probe() which will check if error
code is -EPROBE_DEFER.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 102947f9
...@@ -1288,9 +1288,8 @@ static int cpsw_probe_dt(struct cpsw_common *cpsw) ...@@ -1288,9 +1288,8 @@ static int cpsw_probe_dt(struct cpsw_common *cpsw)
if (of_phy_is_fixed_link(port_np)) { if (of_phy_is_fixed_link(port_np)) {
ret = of_phy_register_fixed_link(port_np); ret = of_phy_register_fixed_link(port_np);
if (ret) { if (ret) {
if (ret != -EPROBE_DEFER) dev_err_probe(dev, ret, "%pOF failed to register fixed-link phy\n",
dev_err(dev, "%pOF failed to register fixed-link phy: %d\n", port_np);
port_np, ret);
goto err_node_put; goto err_node_put;
} }
slave_data->phy_node = of_node_get(port_np); slave_data->phy_node = of_node_get(port_np);
......
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