diff --git a/drivers/gpu/nvgpu/common/linux/nvhost.c b/drivers/gpu/nvgpu/common/linux/nvhost.c index 611351aea..b8e51aacc 100644 --- a/drivers/gpu/nvgpu/common/linux/nvhost.c +++ b/drivers/gpu/nvgpu/common/linux/nvhost.c @@ -199,14 +199,13 @@ int nvgpu_nvhost_sync_num_pts(struct sync_fence *fence) struct sync_fence *nvgpu_nvhost_sync_create_fence( struct nvgpu_nvhost_dev *nvhost_dev, - u32 id, u32 thresh, - u32 num_pts, const char *name) + u32 id, u32 thresh, const char *name) { struct nvhost_ctrl_sync_fence_info pt = { .id = id, .thresh = thresh, }; - return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, num_pts, name); + return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name); } #endif /* CONFIG_SYNC */ diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index d0df88576..608584249 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c @@ -317,7 +317,7 @@ int gk20a_fence_from_syncpt( #ifdef CONFIG_SYNC if (need_sync_fence) { sync_fence = nvgpu_nvhost_sync_create_fence(nvhost_dev, - id, value, 1, "fence"); + id, value, "fence"); if (IS_ERR(sync_fence)) return -1; } diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvhost.h b/drivers/gpu/nvgpu/include/nvgpu/nvhost.h index 536b248a4..d852c77c4 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvhost.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvhost.h @@ -75,7 +75,7 @@ int nvgpu_nvhost_sync_num_pts(struct sync_fence *fence); struct sync_fence *nvgpu_nvhost_sync_fdget(int fd); struct sync_fence *nvgpu_nvhost_sync_create_fence( struct nvgpu_nvhost_dev *nvhost_dev, - u32 id, u32 thresh, u32 num_pts, const char *name); + u32 id, u32 thresh, const char *name); #endif /* CONFIG_SYNC */ #endif /* CONFIG_TEGRA_GK20A_NVHOST */ #endif /* __NVGPU_NVHOST_H__ */