drm/i915: Allocate a crtc_state also when the crtc is being disabled
commitdb7542dd402ad7be8e337ab483350f8795a3c7b0
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 20 Mar 2015 14:18:04 +0000 (20 16:18 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Mar 2015 15:18:20 +0000 (26 16:18 +0100)
tree0885e030ef8a2035d1d6b998282073022870b8b2
parent83a57153f5de299c7672d0cb241289c349b784d4
drm/i915: Allocate a crtc_state also when the crtc is being disabled

For consistency, allocate a new crtc_state for a crtc that is being
disabled. Previously only the enabled value of the current state would
change.

v2: Rebase on v5 of previous patch. (Ander)

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
[danvet: Resolve rebase conflict.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c