aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-21 07:15:51 -0400
committerDave Airlie <airlied@redhat.com>2014-07-21 20:58:21 -0400
commitee3939e07920f4a5405aba5f40529fd0fdd1dfb5 (patch)
tree911e7463ed10512cb32346fd4004c48164910eb3 /drivers/gpu/drm/ast
parentd3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20 (diff)
drm/ttm: Fix a few sparse warnings
The final parameter to ttm_bo_reserve() is a pointer, therefore callers should use NULL instead of 0. Fixes a bunch of sparse warnings of this type: warning: Using plain integer as NULL pointer Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r--drivers/gpu/drm/ast/ast_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
index 5d6a87573c33..957d4fabf1e1 100644
--- a/drivers/gpu/drm/ast/ast_drv.h
+++ b/drivers/gpu/drm/ast/ast_drv.h
@@ -362,7 +362,7 @@ static inline int ast_bo_reserve(struct ast_bo *bo, bool no_wait)
362{ 362{
363 int ret; 363 int ret;
364 364
365 ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0); 365 ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, NULL);
366 if (ret) { 366 if (ret) {
367 if (ret != -ERESTARTSYS && ret != -EBUSY) 367 if (ret != -ERESTARTSYS && ret != -EBUSY)
368 DRM_ERROR("reserve failed %p\n", bo); 368 DRM_ERROR("reserve failed %p\n", bo);