Skip to content

Commit b90fc27

Browse files
mugunthanvnmdavem330
authored andcommitted
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>
1 parent a3c910d commit b90fc27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,7 @@ static int cpsw_suspend(struct device *dev)
19731973
{
19741974
struct platform_device*pdev = to_platform_device(dev);
19751975
struct net_device*ndev = platform_get_drvdata(pdev);
1976+
struct cpsw_priv*priv = netdev_priv(ndev);
19761977

19771978
if (netif_running(ndev))
19781979
cpsw_ndo_stop(ndev);

0 commit comments

Comments
 (0)