Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369251
b: refs/heads/master
c: bf7bfd7
h: refs/heads/master
i:
  369249: f59afc9
  369247: 414a2b2
v: v3
  • Loading branch information
Fabio Estevam authored and David S. Miller committed Apr 16, 2013
1 parent 6ed8124 commit 9389a2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: 474f315d7e14be3161d207b3791113f6e6ddb82d
refs/heads/master: bf7bfd7ff0a8e85c5f469a24c27d4dd1eb756104
15 changes: 3 additions & 12 deletions trunk/drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ fec_drv_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int
fec_suspend(struct device *dev)
{
Expand Down Expand Up @@ -1941,24 +1941,15 @@ fec_resume(struct device *dev)

return 0;
}
#endif /* CONFIG_PM_SLEEP */

static const struct dev_pm_ops fec_pm_ops = {
.suspend = fec_suspend,
.resume = fec_resume,
.freeze = fec_suspend,
.thaw = fec_resume,
.poweroff = fec_suspend,
.restore = fec_resume,
};
#endif
static SIMPLE_DEV_PM_OPS(fec_pm_ops, fec_suspend, fec_resume);

static struct platform_driver fec_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &fec_pm_ops,
#endif
.of_match_table = fec_dt_ids,
},
.id_table = fec_devtype,
Expand Down

0 comments on commit 9389a2d

Please sign in to comment.