]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: phy: phylink: Remove error message
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 13 Dec 2017 00:00:27 +0000 (16:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 20:55:01 +0000 (15:55 -0500)
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>
drivers/net/phy/phylink.c

index 60c1b7e5490e88a4633fd117edd9e285bfb3d44c..64e3eb73a2378d86ac532796a3426a8b7bf7b3b6 100644 (file)
@@ -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;
        }