Daniel Mack 0237c11044 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>
2013-02-26 17:26:11 -05:00
..
2012-12-03 11:16:10 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 12:05:51 -08:00
2013-02-21 13:41:04 -08:00
2012-12-28 15:24:19 -08:00
2013-01-14 15:13:39 -05:00
2013-01-08 17:56:10 -08:00
2013-01-20 15:48:14 -08:00