aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp_mst.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-24 09:00:14 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-24 09:42:58 -0400
commit7a418e3448f8c47fb44cc995d7983e735b9774c7 (patch)
tree580a071b607b1992e110093e6d2ee11ffe6b6f52 /drivers/gpu/drm/i915/intel_dp_mst.c
parentfda9ee98230cd4799cddaede37ab3051ac7645df (diff)
drm/i915: Move registration actions to connector->late_register
With the introduction of a connector->func for callback from drm_connector_register() we can move all the tasks that we want to do upon registration into that callback. Later, this will allow us to reorder the registration and defer it until after the device is setup and ready for userspace. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1466773227-7994-2-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp_mst.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp_mst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index 9646816604be..89e7c98f5693 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -477,9 +477,11 @@ static void intel_dp_register_mst_connector(struct drm_connector *connector)
477{ 477{
478 struct intel_connector *intel_connector = to_intel_connector(connector); 478 struct intel_connector *intel_connector = to_intel_connector(connector);
479 struct drm_device *dev = connector->dev; 479 struct drm_device *dev = connector->dev;
480
480 drm_modeset_lock_all(dev); 481 drm_modeset_lock_all(dev);
481 intel_connector_add_to_fbdev(intel_connector); 482 intel_connector_add_to_fbdev(intel_connector);
482 drm_modeset_unlock_all(dev); 483 drm_modeset_unlock_all(dev);
484
483 drm_connector_register(&intel_connector->base); 485 drm_connector_register(&intel_connector->base);
484} 486}
485 487