|
|
@@ -692,7 +692,7 @@ static int bcm_sf2_sw_suspend(struct dsa_switch *ds)
|
|
|
* port, the other ones have already been disabled during
|
|
|
* bcm_sf2_sw_setup
|
|
|
*/
|
|
|
- for (port = 0; port < DSA_MAX_PORTS; port++) {
|
|
|
+ for (port = 0; port < ds->num_ports; port++) {
|
|
|
if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port))
|
|
|
bcm_sf2_port_disable(ds, port, NULL);
|
|
|
}
|