diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-05-18 16:01:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-18 18:21:07 +0300 |
commit | b7ce520e9f71ff65d0aa0ad86223f94ae4095fae (patch) | |
tree | 66a32fe9da54d9d02d57aee68df43124ed0c04bb /drivers/net | |
parent | 5f5c5449acad0cd3322e53e1ac68c044483b0aa5 (diff) | |
download | linux-b7ce520e9f71ff65d0aa0ad86223f94ae4095fae.tar.xz |
sh_eth: Do not print an error message for probe deferral
EPROBE_DEFER is not an error, hence printing an error message like
sh-eth ee700000.ethernet: failed to initialise MDIO
may confuse the user.
To fix this, suppress the error message in case of probe deferral.
While at it, shorten the message, and add the actual error code.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index c85222b02754..2d686ccf971b 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -3220,7 +3220,8 @@ static int sh_eth_drv_probe(struct platform_device *pdev) /* MDIO bus init */ ret = sh_mdio_init(mdp, pd); if (ret) { - dev_err(&pdev->dev, "failed to initialise MDIO\n"); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, "MDIO init failed: %d\n", ret); goto out_release; } |