From 3e39798997f0726472e18a17462216094c084074 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 24 Mar 2017 10:55:46 -0700 Subject: 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 Reviewed-on: http://git-master/r/1328534 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index 07b5d454..d6eec0a5 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c @@ -1619,7 +1619,7 @@ static int pll_reg_show(struct seq_file *s, void *data) nvgpu_mutex_acquire(&g->clk.clk_mutex); if (!g->clk.clk_hw_on) { seq_printf(s, "%s powered down - no access to registers\n", - dev_name(dev_from_gk20a(g))); + g->name); nvgpu_mutex_release(&g->clk.clk_mutex); return 0; } @@ -1666,7 +1666,7 @@ static int pll_reg_raw_show(struct seq_file *s, void *data) nvgpu_mutex_acquire(&g->clk.clk_mutex); if (!g->clk.clk_hw_on) { seq_printf(s, "%s powered down - no access to registers\n", - dev_name(dev_from_gk20a(g))); + g->name); nvgpu_mutex_release(&g->clk.clk_mutex); return 0; } -- cgit v1.2.2