Revert "net: dsa: microchip: set the correct number of ports"

This reverts commit d55dad8b1d.

Upstream commit af199a1a9c ("net: dsa: microchip: set the correct
number of ports") seems to have been applied twice on top of the 5.4
branch. This revert the second instance of said commit.

Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sasha Levin 2020-09-07 14:28:39 -04:00 committed by Greg Kroah-Hartman
parent 4254a4f798
commit 62db427bf8
2 changed files with 0 additions and 6 deletions

View File

@ -1270,9 +1270,6 @@ static int ksz8795_switch_init(struct ksz_device *dev)
/* set the real number of ports */
dev->ds->num_ports = dev->port_cnt;
/* set the real number of ports */
dev->ds->num_ports = dev->port_cnt;
return 0;
}

View File

@ -515,9 +515,6 @@ static int ksz9477_port_vlan_filtering(struct dsa_switch *ds, int port,
PORT_VLAN_LOOKUP_VID_0, false);
}
/* set the real number of ports */
dev->ds->num_ports = dev->port_cnt;
return 0;
}