diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-12-12 16:00:27 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-13 15:55:01 -0500 |
commit | d38b4afd51c19278d6c4fd29c5215ad92ffed48e (patch) | |
tree | 4ff693ddc2b6e4a929751d0618105aee4026b571 | |
parent | 4904b6ea1f9dbf47107f50b1c502a22d0160712d (diff) | |
download | linux-d38b4afd51c19278d6c4fd29c5215ad92ffed48e.tar.bz2 |
net: phy: phylink: Remove error message
Some subsystems like DSA may be trying to connect to a PHY through OF first,
and then attempt a connect using a local MDIO bus, remove the error message:
"unable to find PHY node" so we can let MAC drivers whether to print it or not.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/phylink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 60c1b7e5490e..64e3eb73a237 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -765,10 +765,8 @@ int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn, phy_node = of_parse_phandle(dn, "phy-device", 0); if (!phy_node) { - if (pl->link_an_mode == MLO_AN_PHY) { - netdev_err(pl->netdev, "unable to find PHY node\n"); + if (pl->link_an_mode == MLO_AN_PHY) return -ENODEV; - } return 0; } |