drm/i915: overlay: extract some duplicated code
commit12ca45fea91cfbb09df828bea958b47348caee6d
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 25 Apr 2037 08:08:26 +0000 (25 10:08 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 30 Nov 2009 17:44:23 +0000 (30 09:44 -0800)
treece5d58b2a8315d4d3be51b7ae444abfa79878327
parent26444877812fb2a2b9301b0b3702fdf9f9e06e4b
drm/i915: overlay: extract some duplicated code

I've suspected some bug there wrt to suspend, but that was not
the case. Clean up the code anyway.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_overlay.c