diff mbox

[7/8] drm/tinydrm: Use drm_fbdev_cma_init()

Message ID 1505140322-17416-8-git-send-email-noralf@tronnes.org (mailing list archive)
State New, archived
Headers show

Commit Message

Noralf Trønnes Sept. 11, 2017, 2:32 p.m. UTC
Since the cma library now uses drm_framebuffer_create_dumb(),
drm_fbdev_cma_init() will provide a framebuffer with the dirty callback
set.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
---
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
index 551709e..6ebe970 100644
--- a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
+++ b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c
@@ -221,9 +221,8 @@  static int tinydrm_register(struct tinydrm_device *tdev)
 	if (ret)
 		return ret;
 
-	fbdev = drm_fbdev_cma_init_with_funcs(drm, bpp ? bpp : 32,
-					      drm->mode_config.num_connector,
-					      tdev->fb_funcs);
+	fbdev = drm_fbdev_cma_init(drm, bpp ? bpp : 32,
+				   drm->mode_config.num_connector);
 	if (IS_ERR(fbdev))
 		DRM_ERROR("Failed to initialize fbdev: %ld\n", PTR_ERR(fbdev));
 	else