drm/i915: Share crtc setup and teardown between dpms and disable/enable
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Sep 2010 12:54:26 +0000 (13:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Sep 2010 13:26:55 +0000 (14:26 +0100)
commit6b383a7f6378f193c30200435d8170f95916b5f0
tree871a780e43182c2fc1a5d9842112fccf6e92daaa
parent788319d48dc2b61db732b19bb9598c062c75ec37
drm/i915: Share crtc setup and teardown between dpms and disable/enable

This closes a couple of corner cases where we introduced and forgot
about a couple of routines that need to be called when disabling the
crtc and then re-enabling it. The code needs to be moved again so that
the common bits are shared across generations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h