aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/omap-aes.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c
index c2298521388c..3262139eb9bd 100644
--- a/drivers/crypto/omap-aes.c
+++ b/drivers/crypto/omap-aes.c
@@ -891,12 +891,31 @@ static int omap_aes_remove(struct platform_device *pdev)
891 return 0; 891 return 0;
892} 892}
893 893
894#ifdef CONFIG_PM_SLEEP
895static int omap_aes_suspend(struct device *dev)
896{
897 pm_runtime_put_sync(dev);
898 return 0;
899}
900
901static int omap_aes_resume(struct device *dev)
902{
903 pm_runtime_get_sync(dev);
904 return 0;
905}
906#endif
907
908static const struct dev_pm_ops omap_aes_pm_ops = {
909 SET_SYSTEM_SLEEP_PM_OPS(omap_aes_suspend, omap_aes_resume)
910};
911
894static struct platform_driver omap_aes_driver = { 912static struct platform_driver omap_aes_driver = {
895 .probe = omap_aes_probe, 913 .probe = omap_aes_probe,
896 .remove = omap_aes_remove, 914 .remove = omap_aes_remove,
897 .driver = { 915 .driver = {
898 .name = "omap-aes", 916 .name = "omap-aes",
899 .owner = THIS_MODULE, 917 .owner = THIS_MODULE,
918 .pm = &omap_aes_pm_ops,
900 }, 919 },
901}; 920};
902 921