[SRU][H/raspi][PATCH 2/7] drm/vc4: hdmi: Remove unnecessary pm_runtime_put
Juerg Haefliger
juerg.haefliger at canonical.com
Mon Oct 4 18:16:48 UTC 2021
From: Maxime Ripard <maxime at cerno.tech>
BugLink: https://bugs.launchpad.net/bugs/1944397
Unlike pm_runtime_get_sync(), pm_runtime_resume_and_get() doesn't take a
reference on failure, so we don't need to call pm_runtime_put() on
failure.
Signed-off-by: Maxime Ripard <maxime at cerno.tech>
(cherry picked from commit 42111230f631c76840be67376bebcc6b06e3baca linux-rpi)
Signed-off-by: Juerg Haefliger <juergh at canonical.com>
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index ccc1ef339e4c..780d06732925 100644
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -915,7 +915,6 @@ static void vc4_hdmi_encoder_pre_crtc_configure(struct drm_encoder *encoder,
ret = pm_runtime_resume_and_get(&vc4_hdmi->pdev->dev);
if (ret < 0) {
DRM_ERROR("Failed to retain power domain: %d\n", ret);
- pm_runtime_put(&vc4_hdmi->pdev->dev);
return;
}
--
2.30.2
More information about the kernel-team
mailing list