From: Thomas Zimmermann Date: Fri, 7 Aug 2020 11:10:22 +0000 (+0200) Subject: drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally X-Git-Tag: v5.15~303^2~28^2~2082 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3d1bbe794ab4f7cce13e8ba08a2ac978133375e;p=platform%2Fkernel%2Flinux-starfive.git drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally The malidp driver uses GEM object functions for callbacks. Fix it to use them internally as well. Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vetter Fixes: ecdd6474644f ("drm/malidp: Use GEM CMA object functions") Cc: Thomas Zimmermann Cc: Emil Velikov Cc: Liviu Dudau Cc: Brian Starkey Link: https://patchwork.freedesktop.org/patch/msgid/20200807111022.12117-1-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index ab45ac445045..351a85088d0e 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -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;