drm/vram: use embedded gem object

Drop drm_gem_object from drm_gem_vram_object, use the
ttm_buffer_object.base instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20190805140119.7337-3-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann
2019-08-05 16:01:04 +02:00
parent 8eb8833e7e
commit 0e580c6d7d
5 changed files with 13 additions and 14 deletions

View File

@@ -554,6 +554,6 @@ int ast_gem_create(struct drm_device *dev,
DRM_ERROR("failed to allocate GEM object\n");
return ret;
}
*obj = &gbo->gem;
*obj = &gbo->bo.base;
return 0;
}