aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/repaper.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-09-24 14:26:16 +0200
committerNoralf Trønnes <noralf@tronnes.org>2017-10-01 16:59:49 +0200
commitcce1a87788eb607e9616fe0d1c04f5da72141068 (patch)
tree16e6885fa4f37a6426aa3130638042ecf299f562 /drivers/gpu/drm/tinydrm/repaper.c
parentdrm: of: always initialize panel in drm_of_find_panel_or_bridge() (diff)
downloadlinux-dev-cce1a87788eb607e9616fe0d1c04f5da72141068.tar.xz
linux-dev-cce1a87788eb607e9616fe0d1c04f5da72141068.zip
drm/tinydrm: Use drm_gem_framebuffer_helper
Use drm_gem_framebuffer_helper directly instead of the cma library wrappers. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/1506255985-61113-2-git-send-email-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/tinydrm/repaper.c')
-rw-r--r--drivers/gpu/drm/tinydrm/repaper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tinydrm/repaper.c b/drivers/gpu/drm/tinydrm/repaper.c
index 5fbe14715c83..340198f5afea 100644
--- a/drivers/gpu/drm/tinydrm/repaper.c
+++ b/drivers/gpu/drm/tinydrm/repaper.c
@@ -26,6 +26,7 @@
#include <linux/spi/spi.h>
#include <linux/thermal.h>
+#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/tinydrm/tinydrm.h>
#include <drm/tinydrm/tinydrm-helpers.h>
@@ -636,8 +637,8 @@ out_unlock:
}
static const struct drm_framebuffer_funcs repaper_fb_funcs = {
- .destroy = drm_fb_cma_destroy,
- .create_handle = drm_fb_cma_create_handle,
+ .destroy = drm_gem_fb_destroy,
+ .create_handle = drm_gem_fb_create_handle,
.dirty = repaper_fb_dirty,
};