Commit b014861d authored by Alvin Šipraga's avatar Alvin Šipraga Committed by David S. Miller

net: dsa: realtek-smi: don't log an error on EPROBE_DEFER

Probe deferral is not an error, so don't log this as an error:

[0.590156] realtek-smi ethernet-switch: unable to register switch ret = -517
Signed-off-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 754d71be
...@@ -456,7 +456,7 @@ static int realtek_smi_probe(struct platform_device *pdev) ...@@ -456,7 +456,7 @@ static int realtek_smi_probe(struct platform_device *pdev)
smi->ds->ops = var->ds_ops; smi->ds->ops = var->ds_ops;
ret = dsa_register_switch(smi->ds); ret = dsa_register_switch(smi->ds);
if (ret) { if (ret) {
dev_err(dev, "unable to register switch ret = %d\n", ret); dev_err_probe(dev, ret, "unable to register switch\n");
return ret; return ret;
} }
return 0; return 0;
......
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