diff options
author | Rob Clark <robdclark@gmail.com> | 2017-02-10 15:36:33 -0500 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-08 06:59:31 -0400 |
commit | eeb754746b140c5f55e6b25706a9142aa549b348 (patch) | |
tree | 4cab1821b15e61aa59f1b4addef82c48560f2ed5 /drivers/gpu/drm/msm/msm_debugfs.c | |
parent | c3c3ab199bdd5b39f0a16545f4205e20c03ba20f (diff) |
drm/msm/gpu: use pm-runtime
We need to use pm-runtime properly when IOMMU is using device_link() to
control it's own clocks.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b/drivers/gpu/drm/msm/msm_debugfs.c index 89b3b79f92c8..1855182c76ce 100644 --- a/drivers/gpu/drm/msm/msm_debugfs.c +++ b/drivers/gpu/drm/msm/msm_debugfs.c @@ -28,9 +28,9 @@ static int msm_gpu_show(struct drm_device *dev, struct seq_file *m) if (gpu) { seq_printf(m, "%s Status:\n", gpu->name); - gpu->funcs->pm_resume(gpu); + pm_runtime_get_sync(&gpu->pdev->dev); gpu->funcs->show(gpu, m); - gpu->funcs->pm_suspend(gpu); + pm_runtime_put_sync(&gpu->pdev->dev); } return 0; |