aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/gianfar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 8659833f28eb..8a51df045e84 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -549,7 +549,7 @@ static int gfar_remove(struct of_device *ofdev)
549static int gfar_suspend(struct of_device *ofdev, pm_message_t state) 549static int gfar_suspend(struct of_device *ofdev, pm_message_t state)
550{ 550{
551 struct gfar_private *priv = dev_get_drvdata(&ofdev->dev); 551 struct gfar_private *priv = dev_get_drvdata(&ofdev->dev);
552 struct net_device *dev = priv->dev; 552 struct net_device *dev = priv->ndev;
553 unsigned long flags; 553 unsigned long flags;
554 u32 tempval; 554 u32 tempval;
555 555
@@ -598,7 +598,7 @@ static int gfar_suspend(struct of_device *ofdev, pm_message_t state)
598static int gfar_resume(struct of_device *ofdev) 598static int gfar_resume(struct of_device *ofdev)
599{ 599{
600 struct gfar_private *priv = dev_get_drvdata(&ofdev->dev); 600 struct gfar_private *priv = dev_get_drvdata(&ofdev->dev);
601 struct net_device *dev = priv->dev; 601 struct net_device *dev = priv->ndev;
602 unsigned long flags; 602 unsigned long flags;
603 u32 tempval; 603 u32 tempval;
604 int magic_packet = priv->wol_en && 604 int magic_packet = priv->wol_en &&