Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357718
b: refs/heads/master
c: 0635fb3
h: refs/heads/master
v: v3
  • Loading branch information
Mark A. Greer authored and Herbert Xu committed Jan 19, 2013
1 parent 62b546e commit 90ddc8d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5946c4a5e7707d255faf430969d344ad98430b69
refs/heads/master: 0635fb3a3c6a6d1a70996428016dca6d3d8f0961
19 changes: 19 additions & 0 deletions trunk/drivers/crypto/omap-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,31 @@ static int omap_aes_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM_SLEEP
static int omap_aes_suspend(struct device *dev)
{
pm_runtime_put_sync(dev);
return 0;
}

static int omap_aes_resume(struct device *dev)
{
pm_runtime_get_sync(dev);
return 0;
}
#endif

static const struct dev_pm_ops omap_aes_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(omap_aes_suspend, omap_aes_resume)
};

static struct platform_driver omap_aes_driver = {
.probe = omap_aes_probe,
.remove = omap_aes_remove,
.driver = {
.name = "omap-aes",
.owner = THIS_MODULE,
.pm = &omap_aes_pm_ops,
},
};

Expand Down

0 comments on commit 90ddc8d

Please sign in to comment.