diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2018-03-06 12:10:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-07 18:39:59 +0100 |
commit | 630b21a26ae02bd180aebbccad248c64daf1da4b (patch) | |
tree | 98b08336a4abfa61195273aa6797043390104a9f /drivers/net/phy | |
parent | net: unpollute priv_flags space (diff) | |
download | linux-630b21a26ae02bd180aebbccad248c64daf1da4b.tar.xz linux-630b21a26ae02bd180aebbccad248c64daf1da4b.zip |
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/mdio-mux-mmioreg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/phy/mdio-mux-mmioreg.c b/drivers/net/phy/mdio-mux-mmioreg.c index 2573ab012f16..70f6115530af 100644 --- a/drivers/net/phy/mdio-mux-mmioreg.c +++ b/drivers/net/phy/mdio-mux-mmioreg.c @@ -163,8 +163,9 @@ static int mdio_mux_mmioreg_probe(struct platform_device *pdev) mdio_mux_mmioreg_switch_fn, &s->mux_handle, s, NULL); if (ret) { - dev_err(&pdev->dev, "failed to register mdio-mux bus %pOF\n", - np); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, + "failed to register mdio-mux bus %pOF\n", np); return ret; } |