drm/mgag200: remove unused driver_private access
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 14 Aug 2013 13:07:15 +0000 (15:07 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Aug 2013 23:34:35 +0000 (09:34 +1000)
gem_bo->driver_private is never read by mgag200 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/mgag200/mgag200_ttm.c

index 3acb2b044c7b2d626c4efb9741c39a89f92a5ebc..6cf3fa0b35cc27248425cb78fbf35ab46b2097cc 100644 (file)
@@ -321,7 +321,6 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align,
                return ret;
        }
 
-       mgabo->gem.driver_private = NULL;
        mgabo->bo.bdev = &mdev->ttm.bdev;
 
        mgag200_ttm_placement(mgabo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);