aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-08-13 09:31:53 -0400
committerNoralf Trønnes <noralf@tronnes.org>2017-09-16 08:05:54 -0400
commitbd10635335cd5555d4f3d7eec0df32033443bc4b (patch)
treed470cb8611a4791e3a00db54bda9c978bbee5f4b
parent1591017442ffb6b0a735abe4f611a203fb632501 (diff)
drm/imx: 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: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://patchwork.freedesktop.org/patch/msgid/1502631125-13557-11-git-send-email-noralf@tronnes.org
-rw-r--r--drivers/gpu/drm/imx/imx-drm-core.c3
-rw-r--r--drivers/gpu/drm/imx/ipuv3-plane.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index f91cb72d0830..93c7e3f9b4a8 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -24,6 +24,7 @@
24#include <drm/drm_fb_helper.h> 24#include <drm/drm_fb_helper.h>
25#include <drm/drm_crtc_helper.h> 25#include <drm/drm_crtc_helper.h>
26#include <drm/drm_gem_cma_helper.h> 26#include <drm/drm_gem_cma_helper.h>
27#include <drm/drm_gem_framebuffer_helper.h>
27#include <drm/drm_fb_cma_helper.h> 28#include <drm/drm_fb_cma_helper.h>
28#include <drm/drm_plane_helper.h> 29#include <drm/drm_plane_helper.h>
29#include <drm/drm_of.h> 30#include <drm/drm_of.h>
@@ -105,7 +106,7 @@ static int imx_drm_atomic_check(struct drm_device *dev,
105} 106}
106 107
107static const struct drm_mode_config_funcs imx_drm_mode_config_funcs = { 108static const struct drm_mode_config_funcs imx_drm_mode_config_funcs = {
108 .fb_create = drm_fb_cma_create, 109 .fb_create = drm_gem_fb_create,
109 .output_poll_changed = imx_drm_output_poll_changed, 110 .output_poll_changed = imx_drm_output_poll_changed,
110 .atomic_check = imx_drm_atomic_check, 111 .atomic_check = imx_drm_atomic_check,
111 .atomic_commit = drm_atomic_helper_commit, 112 .atomic_commit = drm_atomic_helper_commit,
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c
index debde2dae7bf..82e1c500ec20 100644
--- a/drivers/gpu/drm/imx/ipuv3-plane.c
+++ b/drivers/gpu/drm/imx/ipuv3-plane.c
@@ -18,6 +18,7 @@
18#include <drm/drm_atomic_helper.h> 18#include <drm/drm_atomic_helper.h>
19#include <drm/drm_fb_cma_helper.h> 19#include <drm/drm_fb_cma_helper.h>
20#include <drm/drm_gem_cma_helper.h> 20#include <drm/drm_gem_cma_helper.h>
21#include <drm/drm_gem_framebuffer_helper.h>
21#include <drm/drm_plane_helper.h> 22#include <drm/drm_plane_helper.h>
22 23
23#include "video/imx-ipu-v3.h" 24#include "video/imx-ipu-v3.h"
@@ -661,7 +662,7 @@ static void ipu_plane_atomic_update(struct drm_plane *plane,
661} 662}
662 663
663static const struct drm_plane_helper_funcs ipu_plane_helper_funcs = { 664static const struct drm_plane_helper_funcs ipu_plane_helper_funcs = {
664 .prepare_fb = drm_fb_cma_prepare_fb, 665 .prepare_fb = drm_gem_fb_prepare_fb,
665 .atomic_check = ipu_plane_atomic_check, 666 .atomic_check = ipu_plane_atomic_check,
666 .atomic_disable = ipu_plane_atomic_disable, 667 .atomic_disable = ipu_plane_atomic_disable,
667 .atomic_update = ipu_plane_atomic_update, 668 .atomic_update = ipu_plane_atomic_update,