[PATCH 06/13] drm/msm: drop pm ops from the headless msm driver
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Mon Jul 3 00:37:38 UTC 2023
The msm_pm_prepare()/msm_pm_complete() only make sense for the
KMS-enabled devices, they have priv->kms guards inside. Drop global
msm_pm_ops, which were used only by the headless msm device.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
---
drivers/gpu/drm/msm/msm_drv.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index 9fe789a546f5..a85eb7b21061 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1123,11 +1123,6 @@ void msm_pm_complete(struct device *dev)
drm_mode_config_helper_resume(ddev);
}
-static const struct dev_pm_ops msm_pm_ops = {
- .prepare = msm_pm_prepare,
- .complete = msm_pm_complete,
-};
-
/*
* Componentized driver support:
*/
@@ -1308,7 +1303,6 @@ static struct platform_driver msm_platform_driver = {
.shutdown = msm_drv_shutdown,
.driver = {
.name = "msm",
- .pm = &msm_pm_ops,
},
};
--
2.39.2
More information about the dri-devel
mailing list