drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 7 Aug 2020 11:10:22 +0000 (13:10 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 18 Aug 2020 13:26:32 +0000 (15:26 +0200)
The malidp driver uses GEM object functions for callbacks. Fix it to
use them internally as well.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Fixes: ecdd6474644f ("drm/malidp: Use GEM CMA object functions")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Emil Velikov <emil.velikov@collabora.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200807111022.12117-1-tzimmermann@suse.de
drivers/gpu/drm/arm/malidp_planes.c

index ab45ac445045a9439f77ad686d4f8b784570e3de..351a85088d0ecc4b9f02183066bc97546edd5530 100644 (file)
@@ -346,7 +346,7 @@ static bool malidp_check_pages_threshold(struct malidp_plane_state *ms,
                if (cma_obj->sgt)
                        sgt = cma_obj->sgt;
                else
-                       sgt = obj->dev->driver->gem_prime_get_sg_table(obj);
+                       sgt = obj->funcs->get_sg_table(obj);
 
                if (!sgt)
                        return false;