diff options
author | Christian König <christian.koenig@amd.com> | 2018-02-16 10:08:24 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-20 14:40:33 -0500 |
commit | a489727fcc7a6da19fce994a0bdcb6c7ae560f7b (patch) | |
tree | 075658c93141619817a0af1e3392b96fb132da21 /drivers/gpu/drm/radeon | |
parent | c06cc6f7608d70561655d4fc9e3f9144761aa44b (diff) | |
download | linux-stable-a489727fcc7a6da19fce994a0bdcb6c7ae560f7b.tar.gz linux-stable-a489727fcc7a6da19fce994a0bdcb6c7ae560f7b.tar.bz2 linux-stable-a489727fcc7a6da19fce994a0bdcb6c7ae560f7b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 15404af9d740..c38fea37a67d 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -204,11 +204,7 @@ int radeon_bo_create(struct radeon_device *rdev, bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL); if (bo == NULL) return -ENOMEM; - r = drm_gem_object_init(rdev->ddev, &bo->gem_base, size); - if (unlikely(r)) { - kfree(bo); - return r; - } + drm_gem_private_object_init(rdev->ddev, &bo->gem_base, size); bo->rdev = rdev; bo->surface_reg = -1; INIT_LIST_HEAD(&bo->list); |