drm/i915: move modeset checks out of save/restore_modeset_reg
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Jan 2013 16:53:19 +0000 (17:53 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 28 Jan 2013 21:37:30 +0000 (22:37 +0100)
commit2e9723a3e76a050f80064249dac644f86541d3b4
tree25c1d4c553f96330b893a8874c510e04a85f47c1
parent41c0b3a88c7bae96d8e2ee60c7ed91f57fd152d7
drm/i915: move modeset checks out of save/restore_modeset_reg

That way the control flow is clearer, and it prepares the stage
to extract these ums functions and hide them somewhere.

There's still tons of display stuff outside of these, but that
requires more work.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_suspend.c