drm/i915: Set crtc->new_config to NULL for pipes that are about to be disabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Jan 2014 12:31:38 +0000 (14:31 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Jan 2014 16:22:43 +0000 (17:22 +0100)
commit7bd0a8e74acc608b77008a6ee9c0198c684ea38b
tree2708e8dce5e90bed98631b96c58ea4c4cb642d3d
parent7d00a1f574842270515270ff27b86acde4e3d3c1
drm/i915: Set crtc->new_config to NULL for pipes that are about to be disabled

crtc->new_config is only relevant for pipes that are going to be active
post-modeset. Set the pointer to NULL for all pipes that are going to
be disabled. This is done to help catch bugs where some piece of code
would go looking at crtc->new_config even if the data there is stale.

v2: Clear new_config in disable_crtc_nofb() too (Imre)

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c