From d1ccfb0f130c6c2d5be7b235e39e5000a6f6fa0e Mon Sep 17 00:00:00 2001 From: Alex Frid Date: Mon, 9 Feb 2015 18:36:28 -0800 Subject: 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 Reviewed-on: http://git-master/r/682671 GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Reviewed-by: Yu-Huan Hsu --- drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'drivers') 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) clk->sw_ready = true; gk20a_dbg_fn("done"); - pr_info("gm20b gpu.0 GPCPLL initial settings:%s M=%u, N=%u, P=%u\n", + dev_info(dev_from_gk20a(g), "GPCPLL initial settings:%s M=%u, N=%u, P=%u", clk->gpc_pll.mode == GPC_PLL_MODE_DVFS ? " NA mode," : "", clk->gpc_pll.M, clk->gpc_pll.N, clk->gpc_pll.PL); return 0; @@ -1419,7 +1419,8 @@ static int pll_reg_show(struct seq_file *s, void *data) mutex_lock(&g->clk.clk_mutex); if (!g->clk.clk_hw_on) { - seq_printf(s, "gk20a powered down - no access to registers\n"); + seq_printf(s, "%s powered down - no access to registers\n", + dev_name(dev_from_gk20a(g))); mutex_unlock(&g->clk.clk_mutex); return 0; } @@ -1465,7 +1466,8 @@ static int pll_reg_raw_show(struct seq_file *s, void *data) mutex_lock(&g->clk.clk_mutex); if (!g->clk.clk_hw_on) { - seq_puts(s, "gk20a powered down - no access to registers\n"); + seq_printf(s, "%s powered down - no access to registers\n", + dev_name(dev_from_gk20a(g))); mutex_unlock(&g->clk.clk_mutex); return 0; } -- cgit v1.2.2