net: ethernet: ti: cpsw: Fix suspend/resume break
authorKeerthy <j-keerthy@ti.com>
Mon, 24 Jun 2019 05:16:19 +0000 (10:46 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2019 14:22:55 +0000 (07:22 -0700)
commit2f9b0d93a9d3ec64558537ab5d7cff820886afa4
tree1ca87a9c8c5ff671a7b95ff5c598527581818d28
parente54fbbdf5a2944f084b170cd2b7ffdfa00bf3990
net: ethernet: ti: cpsw: Fix suspend/resume break

Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet:
ti: cpsw: use cpsw as drv data")changes
the driver data to struct cpsw_common *cpsw. This is done
only in probe/remove but the suspend/resume functions are
still left with struct net_device *ndev. Hence fix both
suspend & resume also to fetch the updated driver data.

Fixes: bfe59032bd6127ee1 ("net: ethernet: ti: cpsw: use cpsw as drv data")
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c