Skip to content

Commit 70c68d1

Browse files
tmlindherbertx
authored andcommitted
crypto: omap-sham - drop suspend and resume functions
Let's get rid of the suspend and resume calls to runtime PM as these calls do not idle the hardware. The runtime suspend has been disabled for system suspend since commit 88d2613 ("PM: Prevent runtime suspend during system resume"). Instead of runtime PM, the system suspend and resume functions should call driver internal shared functions to idle the hardware as needed. Cc: Lokesh Vutla <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f23f218 commit 70c68d1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

drivers/crypto/omap-sham.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,32 +2221,11 @@ static int omap_sham_remove(struct platform_device *pdev)
22212221
return 0;
22222222
}
22232223

2224-
#ifdef CONFIG_PM_SLEEP
2225-
static int omap_sham_suspend(struct device *dev)
2226-
{
2227-
pm_runtime_put_sync(dev);
2228-
return 0;
2229-
}
2230-
2231-
static int omap_sham_resume(struct device *dev)
2232-
{
2233-
int err = pm_runtime_resume_and_get(dev);
2234-
if (err < 0) {
2235-
dev_err(dev, "failed to get sync: %d\n", err);
2236-
return err;
2237-
}
2238-
return 0;
2239-
}
2240-
#endif
2241-
2242-
static SIMPLE_DEV_PM_OPS(omap_sham_pm_ops, omap_sham_suspend, omap_sham_resume);
2243-
22442224
static struct platform_driver omap_sham_driver = {
22452225
.probe = omap_sham_probe,
22462226
.remove = omap_sham_remove,
22472227
.driver = {
22482228
.name = "omap-sham",
2249-
.pm = &omap_sham_pm_ops,
22502229
.of_match_table = omap_sham_of_match,
22512230
},
22522231
};

0 commit comments

Comments
 (0)