summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/clk_gm20b.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/gm20b/clk_gm20b.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/gm20b/clk_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/clk_gm20b.c4
1 files changed, 2 insertions, 2 deletions
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)
1619 nvgpu_mutex_acquire(&g->clk.clk_mutex); 1619 nvgpu_mutex_acquire(&g->clk.clk_mutex);
1620 if (!g->clk.clk_hw_on) { 1620 if (!g->clk.clk_hw_on) {
1621 seq_printf(s, "%s powered down - no access to registers\n", 1621 seq_printf(s, "%s powered down - no access to registers\n",
1622 dev_name(dev_from_gk20a(g))); 1622 g->name);
1623 nvgpu_mutex_release(&g->clk.clk_mutex); 1623 nvgpu_mutex_release(&g->clk.clk_mutex);
1624 return 0; 1624 return 0;
1625 } 1625 }
@@ -1666,7 +1666,7 @@ static int pll_reg_raw_show(struct seq_file *s, void *data)
1666 nvgpu_mutex_acquire(&g->clk.clk_mutex); 1666 nvgpu_mutex_acquire(&g->clk.clk_mutex);
1667 if (!g->clk.clk_hw_on) { 1667 if (!g->clk.clk_hw_on) {
1668 seq_printf(s, "%s powered down - no access to registers\n", 1668 seq_printf(s, "%s powered down - no access to registers\n",
1669 dev_name(dev_from_gk20a(g))); 1669 g->name);
1670 nvgpu_mutex_release(&g->clk.clk_mutex); 1670 nvgpu_mutex_release(&g->clk.clk_mutex);
1671 return 0; 1671 return 0;
1672 } 1672 }