drm/amdgpu: use crtc directly in drm_crtc_vblank_put()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 7 Jun 2016 14:08:01 +0000 (11:08 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Jun 2016 16:38:06 +0000 (18:38 +0200)
We don't need to use &amdgpu_crtc->base there as crtc is available
in the function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465308482-15104-9-git-send-email-gustavo@padovan.org
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

index 0b5f3accb1e49a4e5b39a56777bb3368bebded97..a6eecf6f9065df5e466219f0ce73798643c9097f 100644 (file)
@@ -268,7 +268,7 @@ int amdgpu_crtc_page_flip(struct drm_crtc *crtc,
        return 0;
 
 vblank_cleanup:
-       drm_crtc_vblank_put(&amdgpu_crtc->base);
+       drm_crtc_vblank_put(crtc);
 
 pflip_cleanup:
        if (unlikely(amdgpu_bo_reserve(new_rbo, false) != 0)) {