]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: ethernet: cpsw: consider number of slaves in interation
authorDaniel Mack <zonque@gmail.com>
Tue, 26 Feb 2013 04:06:20 +0000 (04:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2013 22:26:11 +0000 (17:26 -0500)
commit5d82bca9d925e91fca04b2c866e4311cc67a0a30
treea52189d3590fe007ff3e60f74246a4d2cedda5e1
parent4811502c6aa1f07f859477c9779f8cc0c7d961dc
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>
drivers/net/ethernet/ti/cpsw.c