diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2017-09-24 08:26:23 -0400 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2017-10-01 11:03:55 -0400 |
commit | 1287c94d4de3061b95896b6e3c6d24623ae137cb (patch) | |
tree | 1a2d2778684c514394755cc573e12506da7f7b03 | |
parent | 5d43aa7a7c8f0bb48679eec066271af29c127e36 (diff) |
drm/sun4i: Use drm_gem_fb_create()
drm_fb_cma_create() is just a wrapper around drm_gem_fb_create() now,
so use the function directly.
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1506255985-61113-9-git-send-email-noralf@tronnes.org
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c index 9872e0fc03b0..2992f0a6b349 100644 --- a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c +++ b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <drm/drm_atomic_helper.h> | 13 | #include <drm/drm_atomic_helper.h> |
14 | #include <drm/drm_fb_cma_helper.h> | 14 | #include <drm/drm_fb_cma_helper.h> |
15 | #include <drm/drm_gem_framebuffer_helper.h> | ||
15 | #include <drm/drmP.h> | 16 | #include <drm/drmP.h> |
16 | 17 | ||
17 | #include "sun4i_drv.h" | 18 | #include "sun4i_drv.h" |
@@ -28,7 +29,7 @@ static const struct drm_mode_config_funcs sun4i_de_mode_config_funcs = { | |||
28 | .output_poll_changed = sun4i_de_output_poll_changed, | 29 | .output_poll_changed = sun4i_de_output_poll_changed, |
29 | .atomic_check = drm_atomic_helper_check, | 30 | .atomic_check = drm_atomic_helper_check, |
30 | .atomic_commit = drm_atomic_helper_commit, | 31 | .atomic_commit = drm_atomic_helper_commit, |
31 | .fb_create = drm_fb_cma_create, | 32 | .fb_create = drm_gem_fb_create, |
32 | }; | 33 | }; |
33 | 34 | ||
34 | struct drm_fbdev_cma *sun4i_framebuffer_init(struct drm_device *drm) | 35 | struct drm_fbdev_cma *sun4i_framebuffer_init(struct drm_device *drm) |