aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_plane.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_plane.c')
-rw-r--r--drivers/gpu/drm/drm_plane.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index f42590049a3a..a22e76837065 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -293,7 +293,7 @@ void drm_plane_force_disable(struct drm_plane *plane)
293 return; 293 return;
294 } 294 }
295 /* disconnect the plane from the fb and crtc: */ 295 /* disconnect the plane from the fb and crtc: */
296 drm_framebuffer_unreference(plane->old_fb); 296 drm_framebuffer_put(plane->old_fb);
297 plane->old_fb = NULL; 297 plane->old_fb = NULL;
298 plane->fb = NULL; 298 plane->fb = NULL;
299 plane->crtc = NULL; 299 plane->crtc = NULL;
@@ -520,9 +520,9 @@ static int __setplane_internal(struct drm_plane *plane,
520 520
521out: 521out:
522 if (fb) 522 if (fb)
523 drm_framebuffer_unreference(fb); 523 drm_framebuffer_put(fb);
524 if (plane->old_fb) 524 if (plane->old_fb)
525 drm_framebuffer_unreference(plane->old_fb); 525 drm_framebuffer_put(plane->old_fb);
526 plane->old_fb = NULL; 526 plane->old_fb = NULL;
527 527
528 return ret; 528 return ret;
@@ -638,7 +638,7 @@ static int drm_mode_cursor_universal(struct drm_crtc *crtc,
638 } else { 638 } else {
639 fb = crtc->cursor->fb; 639 fb = crtc->cursor->fb;
640 if (fb) 640 if (fb)
641 drm_framebuffer_reference(fb); 641 drm_framebuffer_get(fb);
642 } 642 }
643 643
644 if (req->flags & DRM_MODE_CURSOR_MOVE) { 644 if (req->flags & DRM_MODE_CURSOR_MOVE) {
@@ -902,9 +902,9 @@ out:
902 if (ret && crtc->funcs->page_flip_target) 902 if (ret && crtc->funcs->page_flip_target)
903 drm_crtc_vblank_put(crtc); 903 drm_crtc_vblank_put(crtc);
904 if (fb) 904 if (fb)
905 drm_framebuffer_unreference(fb); 905 drm_framebuffer_put(fb);
906 if (crtc->primary->old_fb) 906 if (crtc->primary->old_fb)
907 drm_framebuffer_unreference(crtc->primary->old_fb); 907 drm_framebuffer_put(crtc->primary->old_fb);
908 crtc->primary->old_fb = NULL; 908 crtc->primary->old_fb = NULL;
909 drm_modeset_unlock_crtc(crtc); 909 drm_modeset_unlock_crtc(crtc);
910 910