[PATCH 2/3] net: cpsw: verify correct number of slaves in DT

2012-12-03 Thread Jan Luebbe
Check that the number of available slaves passed from DT matches the value of the slaves property in the cpsw node. Otherwise, priv-slaves would be the wrong size. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 17 + 1 file changed, 17

Re: [PATCH 2/3] net: cpsw: verify correct number of slaves in DT

2012-12-03 Thread Mugunthan V N
On 12/3/2012 7:19 PM, Jan Luebbe wrote: Check that the number of available slaves passed from DT matches the value of the slaves property in the cpsw node. Otherwise, priv-slaves would be the wrong size. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 17