From: Daniel Vetter Date: Tue, 27 Dec 2016 10:49:23 +0000 (+0100) Subject: drm/exynos: Stop using drm_framebuffer_unregister_private X-Git-Tag: v4.14-rc1~1422^2~28^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=328c057ca4def7040872032cd22df5347fa5e956;p=platform%2Fkernel%2Flinux-rpi3.git drm/exynos: Stop using drm_framebuffer_unregister_private 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 Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index d880815..a7884be 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c @@ -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);