aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 952b3d4fb2a6..17459ee49ec3 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -665,6 +665,12 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
665 ret = -EINVAL; 665 ret = -EINVAL;
666 goto fail; 666 goto fail;
667 } 667 }
668 DRM_DEBUG_KMS("Setting connector DPMS state to on\n");
669 for (i = 0; i < set->num_connectors; i++) {
670 DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
671 drm_get_connector_name(set->connectors[i]));
672 set->connectors[i]->dpms = DRM_MODE_DPMS_ON;
673 }
668 } 674 }
669 drm_helper_disable_unused_functions(dev); 675 drm_helper_disable_unused_functions(dev);
670 } else if (fb_changed) { 676 } else if (fb_changed) {
@@ -681,12 +687,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
681 goto fail; 687 goto fail;
682 } 688 }
683 } 689 }
684 DRM_DEBUG_KMS("Setting connector DPMS state to on\n");
685 for (i = 0; i < set->num_connectors; i++) {
686 DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
687 drm_get_connector_name(set->connectors[i]));
688 set->connectors[i]->dpms = DRM_MODE_DPMS_ON;
689 }
690 690
691 kfree(save_connectors); 691 kfree(save_connectors);
692 kfree(save_encoders); 692 kfree(save_encoders);