Commit fc74b32b authored by Vladimir Oltean's avatar Vladimir Oltean Committed by David S. Miller

net: dsa: lantiq_gswip: delete irrelevant use of ds->phys_mii_mask

__of_mdiobus_register(), called right next, overwrites the phy_mask
we just configured on the bus, so this is redundant and confusing.
Delete it.
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94e2557d
...@@ -521,7 +521,6 @@ static int gswip_mdio(struct gswip_priv *priv, struct device_node *mdio_np) ...@@ -521,7 +521,6 @@ static int gswip_mdio(struct gswip_priv *priv, struct device_node *mdio_np)
snprintf(ds->user_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", snprintf(ds->user_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii",
dev_name(priv->dev)); dev_name(priv->dev));
ds->user_mii_bus->parent = priv->dev; ds->user_mii_bus->parent = priv->dev;
ds->user_mii_bus->phy_mask = ~ds->phys_mii_mask;
err = of_mdiobus_register(ds->user_mii_bus, mdio_np); err = of_mdiobus_register(ds->user_mii_bus, mdio_np);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment