aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/core/tinydrm-core.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/core/tinydrm-core.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/core/tinydrm-core.c')
-rw-r--r--drivers/gpu/drm/tinydrm/core/tinydrm-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
index 551709e6b114..1a8a57cad431 100644
--- a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
+++ b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
@@ -10,6 +10,7 @@
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
+#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/tinydrm/tinydrm.h>
#include <linux/device.h>
#include <linux/dma-buf.h>
@@ -128,7 +129,7 @@ tinydrm_fb_create(struct drm_device *drm, struct drm_file *file_priv,
{
struct tinydrm_device *tdev = drm->dev_private;
- return drm_fb_cma_create_with_funcs(drm, file_priv, mode_cmd,
+ return drm_gem_fb_create_with_funcs(drm, file_priv, mode_cmd,
tdev->fb_funcs);
}