diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2017-08-13 09:32:03 -0400 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2017-08-16 15:35:57 -0400 |
commit | 9762477c9289a89539d4639985cbb1511eefe20e (patch) | |
tree | 7d777714192636c18343afc9b7a5af873f997e87 | |
parent | b6eb01a9c624b3be43c8d10c4e85e1fea935d1e3 (diff) |
drm/vc4: 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: 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-21-git-send-email-noralf@tronnes.org
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c index dfe7554268f0..50c4959b5bd3 100644 --- a/drivers/gpu/drm/vc4/vc4_kms.c +++ b/drivers/gpu/drm/vc4/vc4_kms.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <drm/drm_crtc_helper.h> | 20 | #include <drm/drm_crtc_helper.h> |
21 | #include <drm/drm_plane_helper.h> | 21 | #include <drm/drm_plane_helper.h> |
22 | #include <drm/drm_fb_cma_helper.h> | 22 | #include <drm/drm_fb_cma_helper.h> |
23 | #include <drm/drm_gem_framebuffer_helper.h> | ||
23 | #include "vc4_drv.h" | 24 | #include "vc4_drv.h" |
24 | 25 | ||
25 | static void vc4_output_poll_changed(struct drm_device *dev) | 26 | static void vc4_output_poll_changed(struct drm_device *dev) |
@@ -189,7 +190,7 @@ static struct drm_framebuffer *vc4_fb_create(struct drm_device *dev, | |||
189 | mode_cmd = &mode_cmd_local; | 190 | mode_cmd = &mode_cmd_local; |
190 | } | 191 | } |
191 | 192 | ||
192 | return drm_fb_cma_create(dev, file_priv, mode_cmd); | 193 | return drm_gem_fb_create(dev, file_priv, mode_cmd); |
193 | } | 194 | } |
194 | 195 | ||
195 | static const struct drm_mode_config_funcs vc4_mode_funcs = { | 196 | static const struct drm_mode_config_funcs vc4_mode_funcs = { |