Skip to content

Commit

Permalink
net: dsa: realtek-smi: don't log an error on EPROBE_DEFER
Browse files Browse the repository at this point in the history
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: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alvin Šipraga authored and David S. Miller committed Nov 29, 2021
1 parent 754d71b commit b014861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dsa/realtek-smi-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static int realtek_smi_probe(struct platform_device *pdev)
smi->ds->ops = var->ds_ops;
ret = dsa_register_switch(smi->ds);
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 0;
Expand Down

0 comments on commit b014861

Please sign in to comment.