From: Jonas Bonn Date: Fri, 15 May 2009 07:10:41 +0000 (+0200) Subject: drm/i915: Determine type before initialising connector X-Git-Tag: v2.6.30-rc8~49^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5b2a6db3eddc41358d8a73f5cfe1c38e7e3a19;p=pandora-kernel.git drm/i915: Determine type before initialising connector drm_connector_init sets both the connector type and the connector type_id on the newly initialised connector. As the connector type_id is coupled to the connector type, the connector type cannot simply be modified on an initialised connector. This patch changes the order of operations on intel_sdvo_init so that the type is determined before the connector is intialised. This fixes a bug whereby the name card0-VGA-1 would be allocted to both a CRT and an SDVO connector since the SDVO connector would be initialised with type 'unknown' and hence have its type_id assigned from the wrong pool. Signed-off-by: Jonas Bonn Signed-off-by: Eric Anholt --- Reading git-diff-tree failed