aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-12 08:53:37 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 05:23:53 -0400
commit23f09ce31ca68af3728ac5eed3e3efb03c5f990a (patch)
tree12ecc7a2794fa9853278edf1ea0499d65a3ec29a /drivers/gpu/drm/i915/intel_display.c
parent5dcdbcb06badbdf2faa698bf3198e421a1e12840 (diff)
drm/i915/overlay: Make the overlay control struct opaque.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e4fb5364a533..0b400d1d2fe1 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2224,11 +2224,11 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
2224static void intel_crtc_dpms_overlay(struct intel_crtc *intel_crtc, bool enable) 2224static void intel_crtc_dpms_overlay(struct intel_crtc *intel_crtc, bool enable)
2225{ 2225{
2226 if (!enable && intel_crtc->overlay) { 2226 if (!enable && intel_crtc->overlay) {
2227 struct intel_overlay *overlay = intel_crtc->overlay; 2227 struct drm_device *dev = intel_crtc->base.dev;
2228 2228
2229 mutex_lock(&overlay->dev->struct_mutex); 2229 mutex_lock(&dev->struct_mutex);
2230 (void) intel_overlay_switch_off(overlay, false); 2230 (void) intel_overlay_switch_off(intel_crtc->overlay, false);
2231 mutex_unlock(&overlay->dev->struct_mutex); 2231 mutex_unlock(&dev->struct_mutex);
2232 } 2232 }
2233 2233
2234 /* Let userspace switch the overlay on again. In most cases userspace 2234 /* Let userspace switch the overlay on again. In most cases userspace