aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-06-06 20:42:02 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-06 20:42:02 -0400
commiteedc765ca4b19a41cf0b921a492ac08d640060d1 (patch)
tree95c566c6238cc953e1e336115d2daafe8bcb388f /drivers/net/fec.c
parente59d44df46edaafb6b637e98d046775524b31104 (diff)
parent024a07bacf8287a6ddfa83e9d5b951c5e8b4070e (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/sfc/net_driver.h drivers/net/sfc/siena.c
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r--drivers/net/fec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index a3565adc034c..a3cae4ed6ac9 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -1369,10 +1369,9 @@ fec_suspend(struct platform_device *dev, pm_message_t state)
1369 1369
1370 if (ndev) { 1370 if (ndev) {
1371 fep = netdev_priv(ndev); 1371 fep = netdev_priv(ndev);
1372 if (netif_running(ndev)) { 1372 if (netif_running(ndev))
1373 netif_device_detach(ndev); 1373 fec_enet_close(ndev);
1374 fec_stop(ndev); 1374 clk_disable(fep->clk);
1375 }
1376 } 1375 }
1377 return 0; 1376 return 0;
1378} 1377}
@@ -1381,12 +1380,13 @@ static int
1381fec_resume(struct platform_device *dev) 1380fec_resume(struct platform_device *dev)
1382{ 1381{
1383 struct net_device *ndev = platform_get_drvdata(dev); 1382 struct net_device *ndev = platform_get_drvdata(dev);
1383 struct fec_enet_private *fep;
1384 1384
1385 if (ndev) { 1385 if (ndev) {
1386 if (netif_running(ndev)) { 1386 fep = netdev_priv(ndev);
1387 fec_enet_init(ndev, 0); 1387 clk_enable(fep->clk);
1388 netif_device_attach(ndev); 1388 if (netif_running(ndev))
1389 } 1389 fec_enet_open(ndev);
1390 } 1390 }
1391 return 0; 1391 return 0;
1392} 1392}