drm/msm: use drm_crtc_send_vblank_event()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 14 Apr 2016 17:48:16 +0000 (10:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 May 2016 15:03:51 +0000 (17:03 +0200)
Replace the legacy drm_send_vblank_event() with the new helper function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1460656118-16766-5-git-send-email-gustavo@padovan.org
drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c

index e233acf523349c8e0e84aa6df34cb1fecce1da91..3a48889dd9e5183f4d36040308be9c4a80dd678b 100644 (file)
@@ -121,7 +121,7 @@ static void complete_flip(struct drm_crtc *crtc, struct drm_file *file)
                if (!file || (event->base.file_priv == file)) {
                        mdp4_crtc->event = NULL;
                        DBG("%s: send event: %p", mdp4_crtc->name, event);
-                       drm_send_vblank_event(dev, mdp4_crtc->id, event);
+                       drm_crtc_send_vblank_event(crtc, event);
                }
        }
        spin_unlock_irqrestore(&dev->event_lock, flags);
index 9673b9520b6aeb56d2f6d6823b389828ea4b7a8f..ce779d956d57d57d2234f05a952a9c04b69202cd 100644 (file)
@@ -149,7 +149,7 @@ static void complete_flip(struct drm_crtc *crtc, struct drm_file *file)
                if (!file || (event->base.file_priv == file)) {
                        mdp5_crtc->event = NULL;
                        DBG("%s: send event: %p", mdp5_crtc->name, event);
-                       drm_send_vblank_event(dev, mdp5_crtc->id, event);
+                       drm_crtc_send_vblank_event(crtc, event);
                }
        }
        spin_unlock_irqrestore(&dev->event_lock, flags);