Skip to content

Commit

Permalink
net: phy: mdio-mux: slience probe defer error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerome Brunet authored and David S. Miller committed Mar 7, 2018
1 parent 1ec54cb commit 630b21a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/phy/mdio-mux-mmioreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 630b21a

Please sign in to comment.