drm/radeon: remove stale gem->driver_private access
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 14 Aug 2013 13:07:18 +0000 (15:07 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Aug 2013 23:34:47 +0000 (09:34 +1000)
This field is never read. No need to set it in radeon. Besides, DRM gem
core clears it during setup, anyway.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_prime.c

index 2020bf4a38302385c5c815d0d1a1d19407d53ab3..c0fa4aa9ceea8ad8d22c7485b28f4bf045a3a7dd 100644 (file)
@@ -142,7 +142,6 @@ int radeon_bo_create(struct radeon_device *rdev,
                return r;
        }
        bo->rdev = rdev;
-       bo->gem_base.driver_private = NULL;
        bo->surface_reg = -1;
        INIT_LIST_HEAD(&bo->list);
        INIT_LIST_HEAD(&bo->va);
index 65b9eabd5a2f08b28e864c18e05ce060802dffb6..20074560fc256867e82c62518e04d1434cd83662 100644 (file)
@@ -68,7 +68,6 @@ struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev,
                               RADEON_GEM_DOMAIN_GTT, sg, &bo);
        if (ret)
                return ERR_PTR(ret);
-       bo->gem_base.driver_private = bo;
 
        mutex_lock(&rdev->gem.mutex);
        list_add_tail(&bo->list, &rdev->gem.objects);