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 <nor...@tronnes.org>
---
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to