Commit 5cb8b996 authored by Daniel Stone's avatar Daniel Stone Committed by Thierry Reding

drm/tegra: Use drm_gem_fb_destroy

Now that our destroy function is the same as the helper, use that
directly.
Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-tegra@vger.kernel.org
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent c34a997d
......@@ -92,23 +92,8 @@ int tegra_fb_get_tiling(struct drm_framebuffer *framebuffer,
return 0;
}
static void tegra_fb_destroy(struct drm_framebuffer *framebuffer)
{
unsigned int i;
for (i = 0; i < framebuffer->format->num_planes; i++) {
struct tegra_bo *bo = tegra_fb_get_plane(framebuffer, i);
if (bo)
drm_gem_object_put_unlocked(&bo->gem);
}
drm_framebuffer_cleanup(framebuffer);
kfree(framebuffer);
}
static const struct drm_framebuffer_funcs tegra_fb_funcs = {
.destroy = tegra_fb_destroy,
.destroy = drm_gem_fb_destroy,
.create_handle = drm_gem_fb_create_handle,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment