summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-07-02 15:59:28 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-05 22:10:32 -0400
commitefd9ba3a797ee5b7edf4fb9464c802d3d5d29b68 (patch)
tree6a8ed030d2d5afa09a8d735ff49c6d85a7db123b /drivers/gpu
parent6d758eb81bcbff4e50df5c9fa67a369a4e1f2074 (diff)
gpu: nvgpu: gv11b: Use g->name instead of dev_name()
Dump device name using g->name instead of dev_name(). dev_name() is Linux specific. Change-Id: I65eb89e41ca81ca6143fb247a10c306b4efc96ad Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1512176 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index ace873e9..b0d182dc 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -288,7 +288,7 @@ static void gv11b_dump_channel_status_ramfc(struct gk20a *g,
288 inst_mem = &ch_state->inst_block[0]; 288 inst_mem = &ch_state->inst_block[0];
289 289
290 gk20a_debug_output(o, "%d-%s, pid %d, refs: %d: ", chid, 290 gk20a_debug_output(o, "%d-%s, pid %d, refs: %d: ", chid,
291 dev_name(g->dev), 291 g->name,
292 ch_state->pid, 292 ch_state->pid,
293 ch_state->refs); 293 ch_state->refs);
294 gk20a_debug_output(o, "channel status: %s in use %s %s\n", 294 gk20a_debug_output(o, "channel status: %s in use %s %s\n",
@@ -333,7 +333,7 @@ static void gv11b_dump_eng_status(struct gk20a *g,
333 u32 status = gk20a_readl(g, fifo_engine_status_r(i)); 333 u32 status = gk20a_readl(g, fifo_engine_status_r(i));
334 u32 ctx_status = fifo_engine_status_ctx_status_v(status); 334 u32 ctx_status = fifo_engine_status_ctx_status_v(status);
335 335
336 gk20a_debug_output(o, "%s eng %d: ", dev_name(g->dev), i); 336 gk20a_debug_output(o, "%s eng %d: ", g->name, i);
337 gk20a_debug_output(o, 337 gk20a_debug_output(o,
338 "id: %d (%s), next_id: %d (%s), ctx status: %s ", 338 "id: %d (%s), next_id: %d (%s), ctx status: %s ",
339 fifo_engine_status_id_v(status), 339 fifo_engine_status_id_v(status),