drm: update ast/cirrus/mgag200 for change in TTM api
authorDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 13:08:41 +0000 (14:08 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 13:08:41 +0000 (14:08 +0100)
New drivers merged after changes were done in prime TTM code.

Fix build.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_ttm.c
drivers/gpu/drm/cirrus/cirrus_ttm.c
drivers/gpu/drm/mgag200/mgag200_ttm.c

index aad12f747175556b871f463447c39a98a97fc706..6cf2adea66bce47514979983b1effe56d0adc2ab 100644 (file)
@@ -357,7 +357,7 @@ int ast_bo_create(struct drm_device *dev, int size, int align,
        ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size,
                          ttm_bo_type_device, &astbo->placement,
                          align >> PAGE_SHIFT, 0, false, NULL, acc_size,
-                         ast_bo_ttm_destroy);
+                         NULL, ast_bo_ttm_destroy);
        if (ret)
                return ret;
 
index ae2f08ff3808af5e6977b223dac8c011abb9f3b8..2ebcd11a5023089a3a7a8d890c08e3a673184860 100644 (file)
@@ -357,7 +357,7 @@ int cirrus_bo_create(struct drm_device *dev, int size, int align,
        ret = ttm_bo_init(&cirrus->ttm.bdev, &cirrusbo->bo, size,
                          ttm_bo_type_device, &cirrusbo->placement,
                          align >> PAGE_SHIFT, 0, false, NULL, acc_size,
-                         cirrus_bo_ttm_destroy);
+                         NULL, cirrus_bo_ttm_destroy);
        if (ret)
                return ret;
 
index 12264793108f6b2db4a5a7d42b55d6595591ec32..b223dcb7a71022a5fe920e1dc36501f2b964ad14 100644 (file)
@@ -356,7 +356,7 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align,
        ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size,
                          ttm_bo_type_device, &mgabo->placement,
                          align >> PAGE_SHIFT, 0, false, NULL, acc_size,
-                         mgag200_bo_ttm_destroy);
+                         NULL, mgag200_bo_ttm_destroy);
        if (ret)
                return ret;