diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-24 13:55:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-28 15:05:03 -0400 |
commit | 3e39798997f0726472e18a17462216094c084074 (patch) | |
tree | cf68b3fff464c1217fa28ec27f6c612d5cfc66fb /drivers/gpu/nvgpu/gk20a/fb_gk20a.c | |
parent | 580c8112f08281332cefea16243fcfbf27cd6bdd (diff) |
gpu: nvgpu: Remove unnecessary use of dev_name()
Move the name field from struct gpu_ops up to struct gk20a. The field
is not a function op, so it doesn't belong in gpu_ops.
Replace all uses of dev_name() with use of g->name when possible.
JIRA NVGPU-16
Change-Id: Ic6e99e39258cbf3bb7c806962cbbd7de5126688f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1328534
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fb_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fb_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c index a1d348a4..28dfee01 100644 --- a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c | |||
@@ -117,7 +117,7 @@ void gk20a_fb_tlb_invalidate(struct gk20a *g, struct mem_desc *pdb) | |||
117 | 117 | ||
118 | nvgpu_mutex_acquire(&g->mm.tlb_lock); | 118 | nvgpu_mutex_acquire(&g->mm.tlb_lock); |
119 | 119 | ||
120 | trace_gk20a_mm_tlb_invalidate(dev_name(g->dev)); | 120 | trace_gk20a_mm_tlb_invalidate(g->name); |
121 | 121 | ||
122 | nvgpu_timeout_init(g, &timeout, 1000, NVGPU_TIMER_RETRY_TIMER); | 122 | nvgpu_timeout_init(g, &timeout, 1000, NVGPU_TIMER_RETRY_TIMER); |
123 | 123 | ||
@@ -153,7 +153,7 @@ void gk20a_fb_tlb_invalidate(struct gk20a *g, struct mem_desc *pdb) | |||
153 | } while (!nvgpu_timeout_expired_msg(&timeout, | 153 | } while (!nvgpu_timeout_expired_msg(&timeout, |
154 | "wait mmu invalidate")); | 154 | "wait mmu invalidate")); |
155 | 155 | ||
156 | trace_gk20a_mm_tlb_invalidate_done(dev_name(g->dev)); | 156 | trace_gk20a_mm_tlb_invalidate_done(g->name); |
157 | 157 | ||
158 | out: | 158 | out: |
159 | nvgpu_mutex_release(&g->mm.tlb_lock); | 159 | nvgpu_mutex_release(&g->mm.tlb_lock); |