|
@@ -524,17 +524,6 @@ void drm_framebuffer_reference(struct drm_framebuffer *fb)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(drm_framebuffer_reference);
|
|
EXPORT_SYMBOL(drm_framebuffer_reference);
|
|
|
|
|
|
-static void drm_framebuffer_free_bug(struct kref *kref)
|
|
|
|
-{
|
|
|
|
- BUG();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static void __drm_framebuffer_unreference(struct drm_framebuffer *fb)
|
|
|
|
-{
|
|
|
|
- DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount));
|
|
|
|
- kref_put(&fb->refcount, drm_framebuffer_free_bug);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* drm_framebuffer_unregister_private - unregister a private fb from the lookup idr
|
|
* drm_framebuffer_unregister_private - unregister a private fb from the lookup idr
|
|
* @fb: fb to unregister
|
|
* @fb: fb to unregister
|
|
@@ -1319,7 +1308,7 @@ void drm_plane_force_disable(struct drm_plane *plane)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
/* disconnect the plane from the fb and crtc: */
|
|
/* disconnect the plane from the fb and crtc: */
|
|
- __drm_framebuffer_unreference(plane->old_fb);
|
|
|
|
|
|
+ drm_framebuffer_unreference(plane->old_fb);
|
|
plane->old_fb = NULL;
|
|
plane->old_fb = NULL;
|
|
plane->fb = NULL;
|
|
plane->fb = NULL;
|
|
plane->crtc = NULL;
|
|
plane->crtc = NULL;
|