ramips: handle mdio address and switch port seperate
[openwrt/staging/wigyori.git] / target / linux / ramips / files-4.14 / drivers / net / ethernet / mediatek / mdio_rt2880.c
index e53fd7f6288902dea29a61f2bda733fa5fe2e97e..8d82c8f7adcc4ed207bb8010fcbe9a61cd6be423 100644 (file)
@@ -218,5 +218,5 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
        }
 
        if (priv->phy->phy_node[0] && mdiobus_get_phy(priv->mii_bus, 0))
-               fe_connect_phy_node(priv, priv->phy->phy_node[0]);
+               fe_connect_phy_node(priv, priv->phy->phy_node[0], 0);
 }