aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-08-13 09:31:56 -0400
committerNoralf Trønnes <noralf@tronnes.org>2017-08-16 15:35:38 -0400
commitb6eb01a9c624b3be43c8d10c4e85e1fea935d1e3 (patch)
tree1ef61be62d6a574130c1a295297ae6f30e267141
parent5628648df7557abf670ad3708210a24745f90dac (diff)
drm/pl111: Use drm_gem_fb_create() and drm_gem_fb_prepare_fb()
drm_fb_cma_create() and drm_fb_cma_prepare_fb() are just wrappers now, use drm_gem_fb_create() and drm_gem_fb_prepare_fb() directly. Cc: Eric Anholt <eric@anholt.net> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/1502631125-13557-14-git-send-email-noralf@tronnes.org
-rw-r--r--drivers/gpu/drm/pl111/pl111_display.c3
-rw-r--r--drivers/gpu/drm/pl111/pl111_drv.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
index f0139fa58d55..b58c988d9da0 100644
--- a/drivers/gpu/drm/pl111/pl111_display.c
+++ b/drivers/gpu/drm/pl111/pl111_display.c
@@ -23,6 +23,7 @@
23#include <drm/drmP.h> 23#include <drm/drmP.h>
24#include <drm/drm_panel.h> 24#include <drm/drm_panel.h>
25#include <drm/drm_gem_cma_helper.h> 25#include <drm/drm_gem_cma_helper.h>
26#include <drm/drm_gem_framebuffer_helper.h>
26#include <drm/drm_fb_cma_helper.h> 27#include <drm/drm_fb_cma_helper.h>
27 28
28#include "pl111_drm.h" 29#include "pl111_drm.h"
@@ -274,7 +275,7 @@ void pl111_disable_vblank(struct drm_device *drm, unsigned int crtc)
274static int pl111_display_prepare_fb(struct drm_simple_display_pipe *pipe, 275static int pl111_display_prepare_fb(struct drm_simple_display_pipe *pipe,
275 struct drm_plane_state *plane_state) 276 struct drm_plane_state *plane_state)
276{ 277{
277 return drm_fb_cma_prepare_fb(&pipe->plane, plane_state); 278 return drm_gem_fb_prepare_fb(&pipe->plane, plane_state);
278} 279}
279 280
280static const struct drm_simple_display_pipe_funcs pl111_display_funcs = { 281static const struct drm_simple_display_pipe_funcs pl111_display_funcs = {
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
index 0ea3ca823034..581c452cede1 100644
--- a/drivers/gpu/drm/pl111/pl111_drv.c
+++ b/drivers/gpu/drm/pl111/pl111_drv.c
@@ -66,6 +66,7 @@
66#include <drm/drm_atomic_helper.h> 66#include <drm/drm_atomic_helper.h>
67#include <drm/drm_crtc_helper.h> 67#include <drm/drm_crtc_helper.h>
68#include <drm/drm_gem_cma_helper.h> 68#include <drm/drm_gem_cma_helper.h>
69#include <drm/drm_gem_framebuffer_helper.h>
69#include <drm/drm_fb_cma_helper.h> 70#include <drm/drm_fb_cma_helper.h>
70 71
71#include "pl111_drm.h" 72#include "pl111_drm.h"
@@ -73,7 +74,7 @@
73#define DRIVER_DESC "DRM module for PL111" 74#define DRIVER_DESC "DRM module for PL111"
74 75
75static const struct drm_mode_config_funcs mode_config_funcs = { 76static const struct drm_mode_config_funcs mode_config_funcs = {
76 .fb_create = drm_fb_cma_create, 77 .fb_create = drm_gem_fb_create,
77 .atomic_check = drm_atomic_helper_check, 78 .atomic_check = drm_atomic_helper_check,
78 .atomic_commit = drm_atomic_helper_commit, 79 .atomic_commit = drm_atomic_helper_commit,
79}; 80};