]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - drivers/gpu/drm/mgag200/mgag200_ttm.c
drm/mgag200: inline reservations
[linux-imx.git] / drivers / gpu / drm / mgag200 / mgag200_ttm.c
index 0004f7740b8e0a5c0cde9fc79fa169a5c5f2b413..3acb2b044c7b2d626c4efb9741c39a89f92a5ebc 100644 (file)
@@ -303,24 +303,6 @@ void mgag200_ttm_placement(struct mgag200_bo *bo, int domain)
        bo->placement.num_busy_placement = c;
 }
 
-int mgag200_bo_reserve(struct mgag200_bo *bo, bool no_wait)
-{
-       int ret;
-
-       ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0);
-       if (ret) {
-               if (ret != -ERESTARTSYS && ret != -EBUSY)
-                       DRM_ERROR("reserve failed %p %d\n", bo, ret);
-               return ret;
-       }
-       return 0;
-}
-
-void mgag200_bo_unreserve(struct mgag200_bo *bo)
-{
-       ttm_bo_unreserve(&bo->bo);
-}
-
 int mgag200_bo_create(struct drm_device *dev, int size, int align,
                  uint32_t flags, struct mgag200_bo **pmgabo)
 {