drm/qxl: don't allocate a dma_address array
[linux-2.6-microblaze.git] / drivers / gpu / drm / qxl / qxl_ttm.c
index a80d596..7dd0c69 100644 (file)
@@ -115,7 +115,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo,
        ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL);
        if (ttm == NULL)
                return NULL;
-       if (ttm_dma_tt_init(ttm, bo, page_flags, ttm_cached)) {
+       if (ttm_tt_init(ttm, bo, page_flags, ttm_cached)) {
                kfree(ttm);
                return NULL;
        }
@@ -140,7 +140,8 @@ static void qxl_bo_move_notify(struct ttm_buffer_object *bo,
 
 static int qxl_bo_move(struct ttm_buffer_object *bo, bool evict,
                       struct ttm_operation_ctx *ctx,
-                      struct ttm_resource *new_mem)
+                      struct ttm_resource *new_mem,
+                      struct ttm_place *hop)
 {
        struct ttm_resource *old_mem = &bo->mem;
        int ret;