diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-06-21 09:45:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-24 03:28:27 -0400 |
commit | b90fc27a64a57b273351ceef7ae298558ff8a6ac (patch) | |
tree | 94bcbd9be4da07ff7788915f44a13e7adff44a34 /drivers/net | |
parent | a3c910d2e796ce878231350b904105261a8cf09c (diff) |
drivers: net: cpsw: fix compilation error with cpsw driver
drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_suspend':
drivers/net/ethernet/ti/cpsw.c:1979:26: error: 'priv' undeclared (first use in this function)
drivers/net/ethernet/ti/cpsw.c:1979:26: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/net/ethernet/ti/cpsw.o] Error 1
The compilation error was introduced by the following commit
6d3d76f (drivers: net: cpsw: fix cpsw clock gating issue across suspend/resume)
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index e66a20223abb..d1a769f35f9d 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -1973,6 +1973,7 @@ static int cpsw_suspend(struct device *dev) | |||
1973 | { | 1973 | { |
1974 | struct platform_device *pdev = to_platform_device(dev); | 1974 | struct platform_device *pdev = to_platform_device(dev); |
1975 | struct net_device *ndev = platform_get_drvdata(pdev); | 1975 | struct net_device *ndev = platform_get_drvdata(pdev); |
1976 | struct cpsw_priv *priv = netdev_priv(ndev); | ||
1976 | 1977 | ||
1977 | if (netif_running(ndev)) | 1978 | if (netif_running(ndev)) |
1978 | cpsw_ndo_stop(ndev); | 1979 | cpsw_ndo_stop(ndev); |