drm/cirrus: remove unused driver_private access
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 14 Aug 2013 13:07:16 +0000 (15:07 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Aug 2013 23:34:38 +0000 (09:34 +1000)
gem_bo->driver_private is never read by cirrus nor DRM core. No need to
set it. Besides, drm core clears it during setup, anyway.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_ttm.c

index 0047012..bf8a506 100644 (file)
@@ -326,7 +326,6 @@ int cirrus_bo_create(struct drm_device *dev, int size, int align,
                return ret;
        }
 
-       cirrusbo->gem.driver_private = NULL;
        cirrusbo->bo.bdev = &cirrus->ttm.bdev;
 
        cirrus_ttm_placement(cirrusbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);