drm/gma500: use drm_crtc_vblank_{on,off}()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 7 Jun 2016 14:07:59 +0000 (11:07 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Jun 2016 16:38:19 +0000 (18:38 +0200)
Replace the legacy drm_vblank_{on,off}() with the new helper functions.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465308482-15104-7-git-send-email-gustavo@padovan.org
drivers/gpu/drm/gma500/gma_display.c

index 5b636bf0b4678961c0ec8be38968084191c44994..1a1cf7a3b5ef00f5131682f5e709deb9cbf97f47 100644 (file)
@@ -282,7 +282,7 @@ void gma_crtc_dpms(struct drm_crtc *crtc, int mode)
                REG_WRITE(VGACNTRL, VGA_DISP_DISABLE);
 
                /* Turn off vblank interrupts */
-               drm_vblank_off(dev, pipe);
+               drm_crtc_vblank_off(crtc);
 
                /* Wait for vblank for the disable to take effect */
                gma_wait_for_vblank(dev);