drm/exynos: Stop using drm_framebuffer_unregister_private
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 10:49:23 +0000 (11:49 +0100)
committerInki Dae <inki.dae@samsung.com>
Mon, 30 Jan 2017 23:49:35 +0000 (08:49 +0900)
This is the deprecated function for when you embedded the framebuffer
somewhere else (which breaks refcounting). But exynos is using
drm_framebuffer_remove and a free-standing fb, so this is rendundant.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c

index d8808158d41807c1b40802d1d9ee72d8f6822f5e..a7884bea42eb84c5fcea45e5459686709e5d458e 100644 (file)
@@ -270,10 +270,8 @@ static void exynos_drm_fbdev_destroy(struct drm_device *dev,
        /* release drm framebuffer and real buffer */
        if (fb_helper->fb && fb_helper->fb->funcs) {
                fb = fb_helper->fb;
-               if (fb) {
-                       drm_framebuffer_unregister_private(fb);
+               if (fb)
                        drm_framebuffer_remove(fb);
-               }
        }
 
        drm_fb_helper_unregister_fbi(fb_helper);