diff mbox series

drm/msm: Remove unused pm_state

Message ID 20240809183752.160634-1-robdclark@gmail.com
State New
Headers show
Series drm/msm: Remove unused pm_state | expand

Commit Message

Rob Clark Aug. 9, 2024, 6:37 p.m. UTC
From: Rob Clark <robdclark@chromium.org>

This was added in commit ec446d09366c ("drm/msm: call
drm_atomic_helper_suspend() and drm_atomic_helper_resume()"), but unused
since commit ca8199f13498 ("drm/msm/dpu: ensure device suspend happens
during PM sleep") which switched to drm_mode_config_helper_suspend()/
drm_mode_config_helper_resume()..

Signed-off-by: Rob Clark <robdclark@chromium.org>
---
 drivers/gpu/drm/msm/msm_drv.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Abhinav Kumar Aug. 9, 2024, 7:16 p.m. UTC | #1
On 8/9/2024 11:37 AM, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
> 
> This was added in commit ec446d09366c ("drm/msm: call
> drm_atomic_helper_suspend() and drm_atomic_helper_resume()"), but unused
> since commit ca8199f13498 ("drm/msm/dpu: ensure device suspend happens
> during PM sleep") which switched to drm_mode_config_helper_suspend()/
> drm_mode_config_helper_resume()..
> 
> Signed-off-by: Rob Clark <robdclark@chromium.org>
> ---
>   drivers/gpu/drm/msm/msm_drv.h | 2 --
>   1 file changed, 2 deletions(-)
> 

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h
index be016d7b4ef1..c2eb9f14323e 100644
--- a/drivers/gpu/drm/msm/msm_drv.h
+++ b/drivers/gpu/drm/msm/msm_drv.h
@@ -215,8 +215,6 @@  struct msm_drm_private {
 	struct notifier_block vmap_notifier;
 	struct shrinker *shrinker;
 
-	struct drm_atomic_state *pm_state;
-
 	/**
 	 * hangcheck_period: For hang detection, in ms
 	 *