drm/exynos: pass the correct pipe number
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 16 Jul 2015 15:23:31 +0000 (12:23 -0300)
committerInki Dae <inki.dae@samsung.com>
Sun, 16 Aug 2015 01:23:34 +0000 (10:23 +0900)
Instead of giving -1 to as arg to  drm_send_vblank_event() pass the
correct pipe number to it.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c

index 1610757230a5f2545f7dbb7b77367cf2c5d6cc56..f6017262ac02ffe56793ee01006fce5c14892630 100644 (file)
@@ -205,7 +205,7 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe)
        spin_lock_irqsave(&dev->event_lock, flags);
        if (exynos_crtc->event) {
 
-               drm_send_vblank_event(dev, -1, exynos_crtc->event);
+               drm_send_vblank_event(dev, pipe, exynos_crtc->event);
                drm_vblank_put(dev, pipe);
                wake_up(&exynos_crtc->pending_flip_queue);