diff options
author | Imre Deak <imre.deak@intel.com> | 2014-02-11 10:12:48 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-14 05:24:47 -0500 |
commit | 4932e2c3c716067f3580e1a9687bed9d751549e3 (patch) | |
tree | 28438e18467b31654c95e6255c15452674cb7ac8 /drivers/gpu/drm/i915/intel_sdvo.c | |
parent | b6ae3c7c60161a9b1e15b1ccd6412fad65b7d9cf (diff) |
drm/i915: add unregister callback to connector
Since
commit d9255d57147e1dbcebdf6670409c2fa0ac3609e6
Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
Date: Thu Sep 26 20:05:59 2013 -0300
it became clear that we need to separate the unload sequence into two
parts:
1. remove all interfaces through which new operations on some object
(crtc, encoder, connector) can be started and make sure all pending
operations are completed
2. do the actual tear down of the internal representation of the above
objects
The above commit achieved this separation for connectors by splitting
out the sysfs removal part from the connector's destroy callback and
doing this removal before calling drm_mode_config_cleanup() which does
the actual tear-down of all the drm objects.
Since we'll have to customize the interface removal part for different
types of connectors in the upcoming patches, add a new unregister
callback and move the interface removal part to it.
No functional change.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Antti Koskipää <antti.koskipaa@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 95bdfb3c431c..cbc2feeda59d 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -2397,6 +2397,7 @@ intel_sdvo_connector_init(struct intel_sdvo_connector *connector, | |||
2397 | connector->base.base.doublescan_allowed = 0; | 2397 | connector->base.base.doublescan_allowed = 0; |
2398 | connector->base.base.display_info.subpixel_order = SubPixelHorizontalRGB; | 2398 | connector->base.base.display_info.subpixel_order = SubPixelHorizontalRGB; |
2399 | connector->base.get_hw_state = intel_sdvo_connector_get_hw_state; | 2399 | connector->base.get_hw_state = intel_sdvo_connector_get_hw_state; |
2400 | connector->base.unregister = intel_connector_unregister; | ||
2400 | 2401 | ||
2401 | intel_connector_attach_encoder(&connector->base, &encoder->base); | 2402 | intel_connector_attach_encoder(&connector->base, &encoder->base); |
2402 | drm_sysfs_connector_add(&connector->base.base); | 2403 | drm_sysfs_connector_add(&connector->base.base); |