diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-15 13:42:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-21 14:50:03 +0200 |
commit | 102947f9bb9247ed45fb3dc9d8db96df05bc5ea0 (patch) | |
tree | b639cfa33773251826574585ea89afaf77022f53 /drivers/net/ethernet/ti/cpsw.c | |
parent | net: ethernet: ti: am65-cpts: Switch to use dev_err_probe() helper (diff) | |
download | linux-102947f9bb9247ed45fb3dc9d8db96df05bc5ea0.tar.xz linux-102947f9bb9247ed45fb3dc9d8db96df05bc5ea0.zip |
net: ethernet: ti: cpsw: 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: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 312250c642bb..99be1228a4e0 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1319,8 +1319,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data, */ ret = of_phy_register_fixed_link(slave_node); if (ret) { - if (ret != -EPROBE_DEFER) - dev_err(&pdev->dev, "failed to register fixed-link phy: %d\n", ret); + dev_err_probe(&pdev->dev, ret, "failed to register fixed-link phy\n"); goto err_node_put; } slave_data->phy_node = of_node_get(slave_node); |