From c3c3ab199bdd5b39f0a16545f4205e20c03ba20f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 10 Feb 2017 14:52:40 -0500 Subject: drm/msm/gpu: move suspend/resume into debugfs->show Each of the per-generation callbacks was doing this. Lets just simplify and move it into toplevel show() fxn. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_debugfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/drm/msm/msm_debugfs.c') diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b/drivers/gpu/drm/msm/msm_debugfs.c index 4f35d4eb85d0..89b3b79f92c8 100644 --- a/drivers/gpu/drm/msm/msm_debugfs.c +++ b/drivers/gpu/drm/msm/msm_debugfs.c @@ -28,7 +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); gpu->funcs->show(gpu, m); + gpu->funcs->pm_suspend(gpu); } return 0; -- cgit v1.2.3