Commit cbc3526c1ba39f1acc2d2a20add101d0d28e8433
1 parent
3f3ad98ceb
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
2 other branches
Add 0003-crypto-omap4-sham-Add-suspend-resume-PM-support.patch that wasn't part …
…of official PSP 04.06.00.11 release
Showing 1 changed file with 4 additions and 9 deletions Side-by-side Diff
drivers/crypto/omap4-sham.c
... | ... | @@ -1386,24 +1386,19 @@ |
1386 | 1386 | |
1387 | 1387 | static int omap4_sham_suspend(struct device *dev) |
1388 | 1388 | { |
1389 | - pr_debug("#### Crypto: Suspend call ####\n"); | |
1390 | - | |
1389 | + pm_runtime_put_sync(dev); | |
1391 | 1390 | return 0; |
1392 | 1391 | } |
1393 | 1392 | |
1394 | 1393 | |
1395 | 1394 | static int omap4_sham_resume(struct device *dev) |
1396 | 1395 | { |
1397 | - pr_debug("#### Crypto: resume call ####\n"); | |
1398 | - | |
1396 | + pm_runtime_get_sync(dev); | |
1399 | 1397 | return 0; |
1400 | 1398 | } |
1401 | 1399 | |
1402 | 1400 | static struct dev_pm_ops omap4_sham_dev_pm_ops = { |
1403 | - .suspend = omap4_sham_suspend, | |
1404 | - .resume = omap4_sham_resume, | |
1405 | - .runtime_suspend = omap4_sham_suspend, | |
1406 | - .runtime_resume = omap4_sham_resume, | |
1401 | + SET_SYSTEM_SLEEP_PM_OPS(omap4_sham_suspend, omap4_sham_resume) | |
1407 | 1402 | }; |
1408 | 1403 | |
1409 | 1404 | static struct platform_driver omap4_sham_driver = { |
... | ... | @@ -1412,7 +1407,7 @@ |
1412 | 1407 | .driver = { |
1413 | 1408 | .name = "omap4-sham", |
1414 | 1409 | .owner = THIS_MODULE, |
1415 | - .pm = &omap4_sham_dev_pm_ops | |
1410 | + .pm = &omap4_sham_dev_pm_ops | |
1416 | 1411 | }, |
1417 | 1412 | }; |
1418 | 1413 |