net: phy: mdio-mux: slience probe defer error

If we fail to register the mdio bus due to probe defer, we should not
print an error message. Just be silent in this case.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jerome Brunet 2018-03-06 12:10:45 +01:00 committed by David S. Miller
parent 1ec54cb44e
commit 630b21a26a
1 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,9 @@ static int mdio_mux_mmioreg_probe(struct platform_device *pdev)
mdio_mux_mmioreg_switch_fn, mdio_mux_mmioreg_switch_fn,
&s->mux_handle, s, NULL); &s->mux_handle, s, NULL);
if (ret) { if (ret) {
dev_err(&pdev->dev, "failed to register mdio-mux bus %pOF\n", if (ret != -EPROBE_DEFER)
np); dev_err(&pdev->dev,
"failed to register mdio-mux bus %pOF\n", np);
return ret; return ret;
} }