net: ethernet: ti: cpsw: fix cpsw assignment in resume
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 14 Feb 2017 12:42:15 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 19:54:19 +0000 (14:54 -0500)
commita60ced990e309666915d21445e95347d12406694
tree1f05027409768752bc38ce80d372c2abfbf215d3
parentcd27b96bc13841ee7af25837a6ae86fee87273d6
net: ethernet: ti: cpsw: fix cpsw assignment in resume

There is a copy-paste error, which hides breaking of resume
for CPSW driver: there was replaced netdev_priv() to ndev_to_cpsw(ndev)
in suspend, but left it unchanged in resume.

Fixes: 606f39939595a4d4540406bfc11f265b2036af6d
(ti: cpsw: move platform data and slaves info to cpsw_common)

Reported-by: Alexey Starikovskiy <AStarikovskiy@topcon.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c