Skip to content

Commit

Permalink
drm/amdgpu: use crtc directly in drm_crtc_vblank_put()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gustavo Padovan authored and Daniel Vetter committed Jun 13, 2016
1 parent 5c9ac11 commit 27377a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 27377a1

Please sign in to comment.