Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: use NULL instead of zero in object functions

Signed-off-by: Michele Curti <michele.curti@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Michele CURTI and committed by
Alex Deucher
12432354 8e4d9f81

+2 -2
+1 -1
drivers/gpu/drm/radeon/radeon_object.c
··· 722 722 { 723 723 int r; 724 724 725 - r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, 0); 725 + r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, NULL); 726 726 if (unlikely(r != 0)) 727 727 return r; 728 728 spin_lock(&bo->tbo.bdev->fence_lock);
+1 -1
drivers/gpu/drm/radeon/radeon_object.h
··· 65 65 { 66 66 int r; 67 67 68 - r = ttm_bo_reserve(&bo->tbo, !no_intr, false, false, 0); 68 + r = ttm_bo_reserve(&bo->tbo, !no_intr, false, false, NULL); 69 69 if (unlikely(r != 0)) { 70 70 if (r != -ERESTARTSYS) 71 71 dev_err(bo->rdev->dev, "%p reserve failed\n", bo);