From: Takashi Iwai Date: Fri, 18 Mar 2011 09:06:49 +0000 (+0000) Subject: drm/i915/dp: Correct the order of deletion for ghost eDP devices X-Git-Tag: v2.6.39-rc1~79^2~3^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48898b038b69ef4801f0e059026c8f6920684677;p=pandora-kernel.git drm/i915/dp: Correct the order of deletion for ghost eDP devices The order of the calls does matter indeed. Swapping the call order of intel_dp_destroy() and intel_dp_encoder_destroy() fixes the problem. This is because i2c_del_adapter unregisters the device which parent is intel_connector, and connectors are removed in intel_dp_destroy(). Thus intel_dp_encoder_destroy() must be called before intel_dp_destroy(). Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=24822 Signed-off-by: Takashi Iwai Signed-off-by: Chris Wilson Reviewed-by: Keith Packard --- Reading git-diff-tree failed