Revert "net: dsa: microchip: set the correct number of ports"
This reverts commitd55dad8b1d
. Upstream commitaf199a1a9c
("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:
parent
4254a4f798
commit
62db427bf8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue