aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/ucc_geth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/freescale/ucc_geth.c')
-rw-r--r--drivers/net/ethernet/freescale/ucc_geth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index e04c59818f60..3c43dac894ec 100644
--- a/drivers/net/ethernet/freescale/ucc_geth.c
+++ b/drivers/net/ethernet/freescale/ucc_geth.c
@@ -3564,7 +3564,7 @@ static void ucc_geth_timeout(struct net_device *dev)
3564 3564
3565static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state) 3565static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state)
3566{ 3566{
3567 struct net_device *ndev = dev_get_drvdata(&ofdev->dev); 3567 struct net_device *ndev = platform_get_drvdata(ofdev);
3568 struct ucc_geth_private *ugeth = netdev_priv(ndev); 3568 struct ucc_geth_private *ugeth = netdev_priv(ndev);
3569 3569
3570 if (!netif_running(ndev)) 3570 if (!netif_running(ndev))
@@ -3592,7 +3592,7 @@ static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state)
3592 3592
3593static int ucc_geth_resume(struct platform_device *ofdev) 3593static int ucc_geth_resume(struct platform_device *ofdev)
3594{ 3594{
3595 struct net_device *ndev = dev_get_drvdata(&ofdev->dev); 3595 struct net_device *ndev = platform_get_drvdata(ofdev);
3596 struct ucc_geth_private *ugeth = netdev_priv(ndev); 3596 struct ucc_geth_private *ugeth = netdev_priv(ndev);
3597 int err; 3597 int err;
3598 3598