Skip to content

Commit

Permalink
WIP: media: rkvdec: pm runtime dont use autosuspend before disable an…
Browse files Browse the repository at this point in the history
…d cleanup

Signed-off-by: Jonas Karlman <[email protected]>
  • Loading branch information
Kwiboo authored and sigmaris committed Aug 8, 2020
1 parent d370c0d commit 0c5c0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/rkvdec/rkvdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,9 +1212,9 @@ static int rkvdec_remove(struct platform_device *pdev)
{
struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev);

rkvdec_v4l2_cleanup(rkvdec);
pm_runtime_disable(&pdev->dev);
pm_runtime_dont_use_autosuspend(&pdev->dev);
pm_runtime_disable(&pdev->dev);
rkvdec_v4l2_cleanup(rkvdec);
return 0;
}

Expand Down

0 comments on commit 0c5c0c8

Please sign in to comment.