From: Ander Conselvan de Oliveira Date: Fri, 10 Apr 2015 07:59:10 +0000 (+0300) Subject: drm/i915: Allocate connector state together with the connectors X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~58^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bdbd0b911086d03a27e1fe9531b41f5411ccfac;p=pandora-kernel.git drm/i915: Allocate connector state together with the connectors Connector states were being allocated in intel_setup_outputs() in loop over all connectors. That meant hot-added connectors would have a NULL state. Since the change to use a struct drm_atomic_state for the legacy modeset, connector states are necessary for the i915 driver to function properly, so that would lead to oopses. v2: Fix test for intel_connector_init() success in lvds and sdvo (PRTS) Signed-off-by: Ander Conselvan de Oliveira Reported-and-tested-by: Nicolas Kalkhof Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed