net: stmmac: dwmac-qcom-ethqos: Use dev_err_probe()
authorAndrew Halaney <ahalaney@redhat.com>
Mon, 10 Jul 2023 20:06:38 +0000 (15:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jul 2023 09:19:05 +0000 (10:19 +0100)
Using dev_err_probe() logs to devices_deferred which is helpful
when debugging.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

index ebafdadb28d528507f3d3f3bfda79b822bc1891e..1e103fd356b7cf8b73bc55a75da73c8b50244c5e 100644 (file)
@@ -710,8 +710,8 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
 
        plat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);
        if (IS_ERR(plat_dat)) {
-               dev_err(dev, "dt configuration failed\n");
-               return PTR_ERR(plat_dat);
+               return dev_err_probe(dev, PTR_ERR(plat_dat),
+                                    "dt configuration failed\n");
        }
 
        plat_dat->clks_config = ethqos_clks_config;