forked from Minki/linux
drm/radeon: use drm_gem_private_object_init
We use our own backing store and don't need the shmem file. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c06cc6f760
commit
a489727fcc
@ -204,11 +204,7 @@ int radeon_bo_create(struct radeon_device *rdev,
|
|||||||
bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
|
bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
|
||||||
if (bo == NULL)
|
if (bo == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
r = drm_gem_object_init(rdev->ddev, &bo->gem_base, size);
|
drm_gem_private_object_init(rdev->ddev, &bo->gem_base, size);
|
||||||
if (unlikely(r)) {
|
|
||||||
kfree(bo);
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
bo->rdev = rdev;
|
bo->rdev = rdev;
|
||||||
bo->surface_reg = -1;
|
bo->surface_reg = -1;
|
||||||
INIT_LIST_HEAD(&bo->list);
|
INIT_LIST_HEAD(&bo->list);
|
||||||
|
Loading…
Reference in New Issue
Block a user