aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_crtc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 62f485c952e8..c83e4db0adf7 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -524,17 +524,6 @@ void drm_framebuffer_reference(struct drm_framebuffer *fb)
524} 524}
525EXPORT_SYMBOL(drm_framebuffer_reference); 525EXPORT_SYMBOL(drm_framebuffer_reference);
526 526
527static void drm_framebuffer_free_bug(struct kref *kref)
528{
529 BUG();
530}
531
532static void __drm_framebuffer_unreference(struct drm_framebuffer *fb)
533{
534 DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount));
535 kref_put(&fb->refcount, drm_framebuffer_free_bug);
536}
537
538/** 527/**
539 * drm_framebuffer_unregister_private - unregister a private fb from the lookup idr 528 * drm_framebuffer_unregister_private - unregister a private fb from the lookup idr
540 * @fb: fb to unregister 529 * @fb: fb to unregister
@@ -1319,7 +1308,7 @@ void drm_plane_force_disable(struct drm_plane *plane)
1319 return; 1308 return;
1320 } 1309 }
1321 /* disconnect the plane from the fb and crtc: */ 1310 /* disconnect the plane from the fb and crtc: */
1322 __drm_framebuffer_unreference(plane->old_fb); 1311 drm_framebuffer_unreference(plane->old_fb);
1323 plane->old_fb = NULL; 1312 plane->old_fb = NULL;
1324 plane->fb = NULL; 1313 plane->fb = NULL;
1325 plane->crtc = NULL; 1314 plane->crtc = NULL;