aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-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 b34cc7372b52..92369655dca3 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -666,6 +666,12 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
666 ret = -EINVAL; 666 ret = -EINVAL;
667 goto fail; 667 goto fail;
668 } 668 }
669 DRM_DEBUG_KMS("Setting connector DPMS state to on\n");
670 for (i = 0; i < set->num_connectors; i++) {
671 DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
672 drm_get_connector_name(set->connectors[i]));
673 set->connectors[i]->dpms = DRM_MODE_DPMS_ON;
674 }
669 } 675 }
670 drm_helper_disable_unused_functions(dev); 676 drm_helper_disable_unused_functions(dev);
671 } else if (fb_changed) { 677 } else if (fb_changed) {
@@ -682,12 +688,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
682 goto fail; 688 goto fail;
683 } 689 }
684 } 690 }
685 DRM_DEBUG_KMS("Setting connector DPMS state to on\n");
686 for (i = 0; i < set->num_connectors; i++) {
687 DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
688 drm_get_connector_name(set->connectors[i]));
689 set->connectors[i]->dpms = DRM_MODE_DPMS_ON;
690 }
691 691
692 kfree(save_connectors); 692 kfree(save_connectors);
693 kfree(save_encoders); 693 kfree(save_encoders);