summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2015-02-09 21:36:28 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:06:18 -0400
commitd1ccfb0f130c6c2d5be7b235e39e5000a6f6fa0e (patch)
tree0e1b80c28b73a9a65ea7385df0bc261a0c95dd63 /drivers
parentdcccce7a903f348522c9277458bfd09621d67034 (diff)
gpu: nvgpu: Remove hard-coded GPU name strings
Removed hard-coded GPU name strings. Instead retrieved GPU name via device name access interfaces. Change-Id: Iefb41cc610e92e870d4664951c3599df2bb83020 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/682671 GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gm20b/clk_gm20b.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
index 173de8c6..56a03e46 100644
--- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
@@ -1129,7 +1129,7 @@ static int gm20b_init_clk_setup_sw(struct gk20a *g)
1129 clk->sw_ready = true; 1129 clk->sw_ready = true;
1130 1130
1131 gk20a_dbg_fn("done"); 1131 gk20a_dbg_fn("done");
1132 pr_info("gm20b gpu.0 GPCPLL initial settings:%s M=%u, N=%u, P=%u\n", 1132 dev_info(dev_from_gk20a(g), "GPCPLL initial settings:%s M=%u, N=%u, P=%u",
1133 clk->gpc_pll.mode == GPC_PLL_MODE_DVFS ? " NA mode," : "", 1133 clk->gpc_pll.mode == GPC_PLL_MODE_DVFS ? " NA mode," : "",
1134 clk->gpc_pll.M, clk->gpc_pll.N, clk->gpc_pll.PL); 1134 clk->gpc_pll.M, clk->gpc_pll.N, clk->gpc_pll.PL);
1135 return 0; 1135 return 0;
@@ -1419,7 +1419,8 @@ static int pll_reg_show(struct seq_file *s, void *data)
1419 1419
1420 mutex_lock(&g->clk.clk_mutex); 1420 mutex_lock(&g->clk.clk_mutex);
1421 if (!g->clk.clk_hw_on) { 1421 if (!g->clk.clk_hw_on) {
1422 seq_printf(s, "gk20a powered down - no access to registers\n"); 1422 seq_printf(s, "%s powered down - no access to registers\n",
1423 dev_name(dev_from_gk20a(g)));
1423 mutex_unlock(&g->clk.clk_mutex); 1424 mutex_unlock(&g->clk.clk_mutex);
1424 return 0; 1425 return 0;
1425 } 1426 }
@@ -1465,7 +1466,8 @@ static int pll_reg_raw_show(struct seq_file *s, void *data)
1465 1466
1466 mutex_lock(&g->clk.clk_mutex); 1467 mutex_lock(&g->clk.clk_mutex);
1467 if (!g->clk.clk_hw_on) { 1468 if (!g->clk.clk_hw_on) {
1468 seq_puts(s, "gk20a powered down - no access to registers\n"); 1469 seq_printf(s, "%s powered down - no access to registers\n",
1470 dev_name(dev_from_gk20a(g)));
1469 mutex_unlock(&g->clk.clk_mutex); 1471 mutex_unlock(&g->clk.clk_mutex);
1470 return 0; 1472 return 0;
1471 } 1473 }