]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/ast/ast_ttm.c
Merge branch 'drm-next-3.12' of git://people.freedesktop.org/~agd5f/linux into drm...
[karo-tx-linux.git] / drivers / gpu / drm / ast / ast_ttm.c
index 6e8887fe6c1b44fb83d09df82d10d50483924de5..32aecb34dbced78308a393833e177fd46a1e5c9b 100644 (file)
@@ -148,7 +148,9 @@ ast_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl)
 
 static int ast_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp)
 {
-       return 0;
+       struct ast_bo *astbo = ast_bo(bo);
+
+       return drm_vma_node_verify_access(&astbo->gem.vma_node, filp);
 }
 
 static int ast_ttm_io_mem_reserve(struct ttm_bo_device *bdev,
@@ -321,7 +323,6 @@ int ast_bo_create(struct drm_device *dev, int size, int align,
                return ret;
        }
 
-       astbo->gem.driver_private = NULL;
        astbo->bo.bdev = &ast->ttm.bdev;
        astbo->bo.bdev->dev_mapping = dev->dev_mapping;