Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155062
b: refs/heads/master
c: 2dbc8a2
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Jul 7, 2009
1 parent 2150f04 commit ca8eb68
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 684dcd056178a04374c71459dbd2b18c6d958ef7
refs/heads/master: 2dbc8a23cc2e677422f6dea991aca4e3d31ab65f
17 changes: 9 additions & 8 deletions trunk/drivers/video/hitfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ static int __exit hitfb_remove(struct platform_device *dev)
return 0;
}

#ifdef CONFIG_PM
static int hitfb_suspend(struct platform_device *dev, pm_message_t state)
static int hitfb_suspend(struct device *dev)
{
u16 v;

Expand All @@ -442,7 +441,7 @@ static int hitfb_suspend(struct platform_device *dev, pm_message_t state)
return 0;
}

static int hitfb_resume(struct platform_device *dev)
static int hitfb_resume(struct device *dev)
{
u16 v;

Expand All @@ -456,17 +455,19 @@ static int hitfb_resume(struct platform_device *dev)

return 0;
}
#endif

static struct dev_pm_ops hitfb_dev_pm_ops = {
.suspend = hitfb_suspend,
.resume = hitfb_resume,
};

static struct platform_driver hitfb_driver = {
.probe = hitfb_probe,
.remove = __exit_p(hitfb_remove),
#ifdef CONFIG_PM
.suspend = hitfb_suspend,
.resume = hitfb_resume,
#endif
.driver = {
.name = "hitfb",
.owner = THIS_MODULE,
.pm = &hitfb_dev_pm_ops,
},
};

Expand Down

0 comments on commit ca8eb68

Please sign in to comment.