summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-24 13:55:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-28 15:05:03 -0400
commit3e39798997f0726472e18a17462216094c084074 (patch)
treecf68b3fff464c1217fa28ec27f6c612d5cfc66fb /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent580c8112f08281332cefea16243fcfbf27cd6bdd (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/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index b23cabe8..3df19a4e 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -5525,7 +5525,7 @@ static int gr_gk20a_handle_sw_method(struct gk20a *g, u32 addr,
5525{ 5525{
5526 gk20a_dbg_fn(""); 5526 gk20a_dbg_fn("");
5527 5527
5528 trace_gr_gk20a_handle_sw_method(dev_name(g->dev)); 5528 trace_gr_gk20a_handle_sw_method(g->name);
5529 5529
5530 if (class_num == KEPLER_COMPUTE_A) { 5530 if (class_num == KEPLER_COMPUTE_A) {
5531 switch (offset << 2) { 5531 switch (offset << 2) {