]> Pileus Git - ~andy/linux/commit
drm/i915/dp: Correct the order of deletion for ghost eDP devices
authorTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2011 09:06:49 +0000 (09:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Mar 2011 09:16:59 +0000 (09:16 +0000)
commit48898b038b69ef4801f0e059026c8f6920684677
tree4e653cf687b3d1ec4ae2b66846295c48cc700ac7
parent29c5a587284195278e233eec5c2234c24fb2c204
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 <tiwai@suse.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_dp.c