Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203180
b: refs/heads/master
c: 87cad5c
h: refs/heads/master
v: v3
  • Loading branch information
Eric Benard authored and David S. Miller committed Jun 26, 2010
1 parent 587bfa3 commit e26c164
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 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: d05f6cf01cc5241ddaca6e122021e64441fe08f3
refs/heads/master: 87cad5c385877ce45244886748564672fd6db035
30 changes: 12 additions & 18 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,11 +1360,10 @@ fec_drv_remove(struct platform_device *pdev)
}

#ifdef CONFIG_PM

static int
fec_suspend(struct platform_device *dev, pm_message_t state)
fec_suspend(struct device *dev)
{
struct net_device *ndev = platform_get_drvdata(dev);
struct net_device *ndev = dev_get_drvdata(dev);
struct fec_enet_private *fep;

if (ndev) {
Expand All @@ -1377,9 +1376,9 @@ fec_suspend(struct platform_device *dev, pm_message_t state)
}

static int
fec_resume(struct platform_device *dev)
fec_resume(struct device *dev)
{
struct net_device *ndev = platform_get_drvdata(dev);
struct net_device *ndev = dev_get_drvdata(dev);
struct fec_enet_private *fep;

if (ndev) {
Expand All @@ -1399,23 +1398,18 @@ static const struct dev_pm_ops fec_pm_ops = {
.poweroff = fec_suspend,
.restore = fec_resume,
};

#define FEC_PM_OPS (&fec_pm_ops)

#else /* !CONFIG_PM */

#define FEC_PM_OPS NULL

#endif /* !CONFIG_PM */
#endif

static struct platform_driver fec_driver = {
.driver = {
.name = "fec",
.owner = THIS_MODULE,
.pm = FEC_PM_OPS,
.name = "fec",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &fec_pm_ops,
#endif
},
.probe = fec_probe,
.remove = __devexit_p(fec_drv_remove),
.probe = fec_probe,
.remove = __devexit_p(fec_drv_remove),
};

static int __init
Expand Down

0 comments on commit e26c164

Please sign in to comment.