Skip to content

Commit f83fc1a

Browse files
tmlindherbertx
authored andcommitted
crypto: omap-sham - add missing pm_runtime_dontuse_autosuspend()
We should pair the usage of pm_runtime_use_autosuspend() with pm_runtime_dont_use_autosuspend(). 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 6a1ec89 commit f83fc1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/crypto/omap-sham.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,7 @@ static int omap_sham_probe(struct platform_device *pdev)
21982198
list_del(&dd->list);
21992199
spin_unlock(&sham.lock);
22002200
err_pm:
2201+
pm_runtime_dont_use_autosuspend(dev);
22012202
pm_runtime_disable(dev);
22022203
if (!dd->polling_mode)
22032204
dma_release_channel(dd->dma_lch);
@@ -2225,6 +2226,7 @@ static int omap_sham_remove(struct platform_device *pdev)
22252226
dd->pdata->algs_info[i].registered--;
22262227
}
22272228
tasklet_kill(&dd->done_task);
2229+
pm_runtime_dont_use_autosuspend(&pdev->dev);
22282230
pm_runtime_disable(&pdev->dev);
22292231

22302232
if (!dd->polling_mode)

0 commit comments

Comments
 (0)