Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312765
b: refs/heads/master
c: 7650572
h: refs/heads/master
i:
  312763: 5e33a25
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 10, 2012
1 parent 902d340 commit 94f97c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 156ffcb42a3b3fbebbb7f0e08e679b0954c0829c
refs/heads/master: 7650572a8baa79d317ca5d37a7998593ff0767af
13 changes: 7 additions & 6 deletions trunk/drivers/char/hw_random/omap-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,22 +162,24 @@ static int __exit omap_rng_remove(struct platform_device *pdev)

#ifdef CONFIG_PM

static int omap_rng_suspend(struct platform_device *pdev, pm_message_t message)
static int omap_rng_suspend(struct device *dev)
{
omap_rng_write_reg(RNG_MASK_REG, 0x0);
return 0;
}

static int omap_rng_resume(struct platform_device *pdev)
static int omap_rng_resume(struct device *dev)
{
omap_rng_write_reg(RNG_MASK_REG, 0x1);
return 0;
}

static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume);
#define OMAP_RNG_PM (&omap_rng_pm)

#else

#define omap_rng_suspend NULL
#define omap_rng_resume NULL
#define OMAP_RNG_PM NULL

#endif

Expand All @@ -188,11 +190,10 @@ static struct platform_driver omap_rng_driver = {
.driver = {
.name = "omap_rng",
.owner = THIS_MODULE,
.pm = OMAP_RNG_PM,
},
.probe = omap_rng_probe,
.remove = __exit_p(omap_rng_remove),
.suspend = omap_rng_suspend,
.resume = omap_rng_resume
};

static int __init omap_rng_init(void)
Expand Down

0 comments on commit 94f97c1

Please sign in to comment.