]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: use drm_crtc_send_vblank_event()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 14 Apr 2016 17:48:15 +0000 (10:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 15 Apr 2016 07:42:17 +0000 (09:42 +0200)
Replace the legacy drm_send_vblank_event() with the new helper function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1460656118-16766-4-git-send-email-gustavo@padovan.org
drivers/gpu/drm/i915/intel_display.c

index 3cae596d10a3ee8efaa69e148e92e1a256e4adc8..929fd93b3e5d20ee2765f0141423aedaab6971ad 100644 (file)
@@ -3805,9 +3805,7 @@ static void page_flip_completed(struct intel_crtc *intel_crtc)
        intel_crtc->unpin_work = NULL;
 
        if (work->event)
-               drm_send_vblank_event(intel_crtc->base.dev,
-                                     intel_crtc->pipe,
-                                     work->event);
+               drm_crtc_send_vblank_event(&intel_crtc->base, work->event);
 
        drm_crtc_vblank_put(&intel_crtc->base);
 
@@ -11714,7 +11712,7 @@ retry:
 
                if (ret == 0 && event) {
                        spin_lock_irq(&dev->event_lock);
-                       drm_send_vblank_event(dev, pipe, event);
+                       drm_crtc_send_vblank_event(crtc, event);
                        spin_unlock_irq(&dev->event_lock);
                }
        }