[PATCH] drm/cma: remove to allocate shmfs backing store

Joonyoung Shim jy0922.shim at samsung.com
Tue Aug 26 23:26:32 PDT 2014


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>
---
 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;
 
-- 
1.9.1



More information about the dri-devel mailing list