]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add unregister callback to connector
authorImre Deak <imre.deak@intel.com>
Tue, 11 Feb 2014 15:12:48 +0000 (17:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Feb 2014 10:24:47 +0000 (11:24 +0100)
commitfc90d6fe143cb3d2df45e781c0d9f78c06e3419b
tree28438e18467b31654c95e6255c15452674cb7ac8
parentbcaed15a10d4a0acd7aeca73b5a739ec7fafad7a
drm/i915: add unregister callback to connector

Since

commit 72299a425d2aaa000fe685dbeb7e6ed259602664
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dsi.c
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/i915/intel_tv.c