Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111813
b: refs/heads/master
c: 539b06f
h: refs/heads/master
i:
  111811: d9e0fd9
v: v3
  • Loading branch information
David Fries authored and Jeff Garzik committed Sep 24, 2008
1 parent 3a1c71c commit 4d5a788
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 533763d34862101090f8563aa9da202583b2423d
refs/heads/master: 539b06fc73b1d470b9ecb3fe7af6d5f439322c08
9 changes: 8 additions & 1 deletion trunk/drivers/net/ne.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,12 @@ static int ne_drv_suspend(struct platform_device *pdev, pm_message_t state)
{
struct net_device *dev = platform_get_drvdata(pdev);

if (netif_running(dev))
if (netif_running(dev)) {
struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;
netif_device_detach(dev);
if (idev)
pnp_stop_dev(idev);
}
return 0;
}

Expand All @@ -854,6 +858,9 @@ static int ne_drv_resume(struct platform_device *pdev)
struct net_device *dev = platform_get_drvdata(pdev);

if (netif_running(dev)) {
struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;
if (idev)
pnp_start_dev(idev);
ne_reset_8390(dev);
NS8390p_init(dev, 1);
netif_device_attach(dev);
Expand Down

0 comments on commit 4d5a788

Please sign in to comment.