diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-15 19:42:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-21 13:50:03 +0100 |
commit | c222cd27dd9642da53f2c064cc2d7f88ca4f04ff (patch) | |
tree | f9c0acc0683f6c31b0fe908f39903a921dd97ba4 /drivers/net/ethernet/stmicro | |
parent | b6dc230fba4b2c87a1eef55dd1562e53e92edefb (diff) | |
download | linux-c222cd27dd9642da53f2c064cc2d7f88ca4f04ff.tar.bz2 |
net: stmmac: dwc-qos: 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/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c index 358fc26f8d1f..80efdeeb0b59 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c @@ -445,9 +445,7 @@ static int dwc_eth_dwmac_probe(struct platform_device *pdev) ret = data->probe(pdev, plat_dat, &stmmac_res); if (ret < 0) { - if (ret != -EPROBE_DEFER) - dev_err(&pdev->dev, "failed to probe subdriver: %d\n", - ret); + dev_err_probe(&pdev->dev, ret, "failed to probe subdriver\n"); goto remove_config; } |