Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200149
b: refs/heads/master
c: e3fe855
h: refs/heads/master
i:
  200147: 5fc3d20
v: v3
  • Loading branch information
Eric Bénard authored and David S. Miller committed Jun 2, 2010
1 parent 08b7974 commit 6b73ec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1011b375be106e0a312baafc981a26165283efe
refs/heads/master: e3fe8558c7fc182972c3d947d88744482111f304
16 changes: 8 additions & 8 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,10 +1373,9 @@ fec_suspend(struct platform_device *dev, pm_message_t state)

if (ndev) {
fep = netdev_priv(ndev);
if (netif_running(ndev)) {
netif_device_detach(ndev);
fec_stop(ndev);
}
if (netif_running(ndev))
fec_enet_close(ndev);
clk_disable(fep->clk);
}
return 0;
}
Expand All @@ -1385,12 +1384,13 @@ static int
fec_resume(struct platform_device *dev)
{
struct net_device *ndev = platform_get_drvdata(dev);
struct fec_enet_private *fep;

if (ndev) {
if (netif_running(ndev)) {
fec_enet_init(ndev, 0);
netif_device_attach(ndev);
}
fep = netdev_priv(ndev);
clk_enable(fep->clk);
if (netif_running(ndev))
fec_enet_open(ndev);
}
return 0;
}
Expand Down

0 comments on commit 6b73ec9

Please sign in to comment.