[PATCH] drm/cma: remove to allocate shmfs backing store
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Thu Aug 28 05:30:59 PDT 2014
Hi Joonyoung,
Thank you for the patch.
On Wednesday 27 August 2014 15:26:32 Joonyoung Shim wrote:
> Initialize GEM object using drm_gem_private_object_init instead of
> drm_gem_object_init. It doesn't need to have shmfs backing store because
> the CMA GEM object uses CMA area.
>
> Signed-off-by: Joonyoung Shim <jy0922.shim at samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> drivers/gpu/drm/drm_gem_cma_helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c
> b/drivers/gpu/drm/drm_gem_cma_helper.c index e467e67..a65cbd0 100644
> --- a/drivers/gpu/drm/drm_gem_cma_helper.c
> +++ b/drivers/gpu/drm/drm_gem_cma_helper.c
> @@ -52,7 +52,7 @@ __drm_gem_cma_create(struct drm_device *drm, unsigned int
> size)
>
> gem_obj = &cma_obj->base;
>
> - ret = drm_gem_object_init(drm, gem_obj, size);
> + ret = drm_gem_private_object_init(drm, gem_obj, size);
> if (ret)
> goto error;
--
Regards,
Laurent Pinchart
More information about the dri-devel
mailing list