drm/radeon: use NULL instead of zero in object functions
authorMichele CURTI <michele.curti@gmail.com>
Mon, 19 May 2014 15:18:52 +0000 (11:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Jun 2014 14:25:06 +0000 (10:25 -0400)
Signed-off-by: Michele Curti <michele.curti@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_object.h

index 19bec0dbfa38bf052db75cb52401adfcb29ac986..95197aa4de4aa50627954fef905076a58431246a 100644 (file)
@@ -722,7 +722,7 @@ int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type, bool no_wait)
 {
        int r;
 
-       r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, 0);
+       r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, NULL);
        if (unlikely(r != 0))
                return r;
        spin_lock(&bo->tbo.bdev->fence_lock);
index 9e7b25a0629d3a249720628aa697b9ff8a0f4a6f..5a873f31a17100289469fe465e53abba75addd51 100644 (file)
@@ -65,7 +65,7 @@ static inline int radeon_bo_reserve(struct radeon_bo *bo, bool no_intr)
 {
        int r;
 
-       r = ttm_bo_reserve(&bo->tbo, !no_intr, false, false, 0);
+       r = ttm_bo_reserve(&bo->tbo, !no_intr, false, false, NULL);
        if (unlikely(r != 0)) {
                if (r != -ERESTARTSYS)
                        dev_err(bo->rdev->dev, "%p reserve failed\n", bo);