diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-22 16:15:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-30 21:34:59 -0400 |
commit | 6f0fcbc667ca55ed25818467069853e6d750cd7d (patch) | |
tree | 26cb9d675fd262b04485df6b8d21bb82a491a2c1 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | 001c7c3185d9b087f89f48a41bee27d2d06721f6 (diff) |
gpu: nvgpu: Convert logging from dev_*() to nvgpu_*()
Convert a few calls from dev_*() logging to nvgpu_*(). This reduces
dependency to Linux specific struct device pointer.
JIRA NVGPU-38
Change-Id: Ib51a6b1287db25b7dd4d164aec3ac75fa2801ebf
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master/r/1507929
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 52053c14..9cc4f58e 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2050,7 +2050,7 @@ int nvgpu_vm_map_buffer(struct vm_gk20a *vm, | |||
2050 | /* get ref to the mem handle (released on unmap_locked) */ | 2050 | /* get ref to the mem handle (released on unmap_locked) */ |
2051 | dmabuf = dma_buf_get(dmabuf_fd); | 2051 | dmabuf = dma_buf_get(dmabuf_fd); |
2052 | if (IS_ERR(dmabuf)) { | 2052 | if (IS_ERR(dmabuf)) { |
2053 | dev_warn(dev_from_vm(vm), "%s: fd %d is not a dmabuf", | 2053 | nvgpu_warn(gk20a_from_vm(vm), "%s: fd %d is not a dmabuf", |
2054 | __func__, dmabuf_fd); | 2054 | __func__, dmabuf_fd); |
2055 | return PTR_ERR(dmabuf); | 2055 | return PTR_ERR(dmabuf); |
2056 | } | 2056 | } |