[Intel-gfx] [PATCH] CHROMIUM: drm/i915: Fix warning

james.ausmus at intel.com james.ausmus at intel.com
Fri Aug 16 02:30:56 CEST 2013


From: Stéphane Marchesin <marcheu at chromium.org>

intel_crtc_update_cursor takes a drm_crtc but we were passing an
intel_crtc. Fix the warning by passing the base class.

BUG=none
TEST=compiles and runs on link

Change-Id: I487ef1984f7957b47bcc6e3edada8911224d8771
Reviewed-on: https://gerrit.chromium.org/gerrit/51383
Tested-by: Stéphane Marchesin <marcheu at chromium.org>
Reviewed-by: Sonny Rao <sonnyrao at chromium.org>
Commit-Queue: Stéphane Marchesin <marcheu at chromium.org>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 5dca437..64e4206 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9370,7 +9370,7 @@ void intel_modeset_setup_hw_state(struct drm_device *dev,
 
 			/* Force-cycle the cursor */
 			crtc->cursor_visible = false;
-			intel_crtc_update_cursor(crtc, true);
+			intel_crtc_update_cursor(&crtc->base, true);
 		}
 
 		i915_redisable_vga(dev);
-- 
1.8.3.2




More information about the Intel-gfx mailing list