mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 21:04:42 -04:00
net: stmmac: dwmac-qcom-ethqos: Use dev_err_probe()
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>
This commit is contained in:
committed by
David S. Miller
parent
a8aa20a64e
commit
b2f3d915b4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user