mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
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: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
94e2557d08
commit
fc74b32b40
@ -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",
|
||||
dev_name(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);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user