commit | 0237c11044b3670adcbe80cd6dd721285347f497 | [log] [tgz] |
---|---|---|
author | Daniel Mack <zonque@gmail.com> | Tue Feb 26 04:06:20 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Feb 26 17:26:11 2013 -0500 |
tree | a52189d3590fe007ff3e60f74246a4d2cedda5e1 | |
parent | b86c761f691d4f8f16b5a40c3d6b71c62e4cb04d [diff] |
drivers: net: ethernet: cpsw: consider number of slaves in interation Make cpsw_add_default_vlan() look at the actual number of slaves for its iteration, so boards with less than 2 slaves don't ooops at boot. Signed-off-by: Daniel Mack <zonque@gmail.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Cc: David S. Miller <davem@davemloft.net> Acked-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>