From: Daniel Vetter Date: Fri, 20 Aug 2010 16:08:28 +0000 (+0200) Subject: drm/i915: unload: fix intel dp encoder cleanup X-Git-Tag: v2.6.37-rc1~92^2~28^2~260 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d05927c37adf62fe8833eceba50585cb78f906;p=pandora-kernel.git drm/i915: unload: fix intel dp encoder cleanup struct intel_dp contains both struct intel_encoder at the beginning (as it's base-class) and an i2c adapater. When initializing, the i2c adapter gets assigned intel_encoder->ddc_adaptor = &intel_dp->adapter and the generic intel_encode_destroy happily calls kfree on this pointer. Ouch. Fix this by using a dp specific cleanup function. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson --- Reading git-diff-tree failed