net: ethernet: ti/cpsw: do not crash on single-MAC machines during resume
authorDaniel Mack <zonque@gmail.com>
Fri, 15 Nov 2013 07:29:16 +0000 (08:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2013 22:58:19 +0000 (17:58 -0500)
During resume, use for_each_slave to walk the slaves of the cpsw, and
soft-reset each of them. This prevents oopses if there is only one
slave configured.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found