aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 9594c623799b..e2974d3c92e7 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -471,9 +471,9 @@ int drm_mode_set_config_internal(struct drm_mode_set *set)
471 471
472 drm_for_each_crtc(tmp, crtc->dev) { 472 drm_for_each_crtc(tmp, crtc->dev) {
473 if (tmp->primary->fb) 473 if (tmp->primary->fb)
474 drm_framebuffer_reference(tmp->primary->fb); 474 drm_framebuffer_get(tmp->primary->fb);
475 if (tmp->primary->old_fb) 475 if (tmp->primary->old_fb)
476 drm_framebuffer_unreference(tmp->primary->old_fb); 476 drm_framebuffer_put(tmp->primary->old_fb);
477 tmp->primary->old_fb = NULL; 477 tmp->primary->old_fb = NULL;
478 } 478 }
479 479
@@ -567,7 +567,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
567 } 567 }
568 fb = crtc->primary->fb; 568 fb = crtc->primary->fb;
569 /* Make refcounting symmetric with the lookup path. */ 569 /* Make refcounting symmetric with the lookup path. */
570 drm_framebuffer_reference(fb); 570 drm_framebuffer_get(fb);
571 } else { 571 } else {
572 fb = drm_framebuffer_lookup(dev, crtc_req->fb_id); 572 fb = drm_framebuffer_lookup(dev, crtc_req->fb_id);
573 if (!fb) { 573 if (!fb) {
@@ -680,7 +680,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
680 680
681out: 681out:
682 if (fb) 682 if (fb)
683 drm_framebuffer_unreference(fb); 683 drm_framebuffer_put(fb);
684 684
685 if (connector_set) { 685 if (connector_set) {
686 for (i = 0; i < crtc_req->count_connectors; i++) { 686 for (i = 0; i < crtc_req->count_connectors; i++) {