mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
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: Alvin Šipraga <alsi@bang-olufsen.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
754d71be52
commit
b014861d96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user