Commit 6aaa8e7d authored by Oleksij Rempel's avatar Oleksij Rempel Committed by David S. Miller

net: dsa: microchip: remove unused port phy variable

This variable is unused. So, drop it.
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a7fbd51
...@@ -1251,7 +1251,6 @@ void ksz8_config_cpu_port(struct dsa_switch *ds) ...@@ -1251,7 +1251,6 @@ void ksz8_config_cpu_port(struct dsa_switch *ds)
if (i == dev->phy_port_cnt) if (i == dev->phy_port_cnt)
break; break;
p->on = 1; p->on = 1;
p->phy = 1;
} }
for (i = 0; i < dev->phy_port_cnt; i++) { for (i = 0; i < dev->phy_port_cnt; i++) {
p = &dev->ports[i]; p = &dev->ports[i];
......
...@@ -1080,13 +1080,8 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds) ...@@ -1080,13 +1080,8 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds)
ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED); ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED);
p->on = 1; p->on = 1;
if (dev->info->internal_phy[i])
p->phy = 1;
if (dev->chip_id == 0x00947700 && i == 6) { if (dev->chip_id == 0x00947700 && i == 6) {
p->sgmii = 1; p->sgmii = 1;
/* SGMII PHY detection code is not implemented yet. */
p->phy = 0;
} }
} }
} }
......
...@@ -73,7 +73,6 @@ struct ksz_port { ...@@ -73,7 +73,6 @@ struct ksz_port {
struct phy_device phydev; struct phy_device phydev;
u32 on:1; /* port is not disabled by hardware */ u32 on:1; /* port is not disabled by hardware */
u32 phy:1; /* port has a PHY */
u32 fiber:1; /* port is fiber */ u32 fiber:1; /* port is fiber */
u32 sgmii:1; /* port is SGMII */ u32 sgmii:1; /* port is SGMII */
u32 force:1; u32 force:1;
......
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