summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
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/gk20a/gk20a.h
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/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index ce26125d..c8932d63 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -347,7 +347,6 @@ struct gpu_ops {
347 void (*init_elcg_mode)(struct gk20a *g, u32 mode, u32 engine); 347 void (*init_elcg_mode)(struct gk20a *g, u32 mode, u32 engine);
348 void (*load_tpc_mask)(struct gk20a *g); 348 void (*load_tpc_mask)(struct gk20a *g);
349 } gr; 349 } gr;
350 const char *name;
351 struct { 350 struct {
352 void (*init_hw)(struct gk20a *g); 351 void (*init_hw)(struct gk20a *g);
353 void (*init_fs_state)(struct gk20a *g); 352 void (*init_fs_state)(struct gk20a *g);
@@ -895,6 +894,8 @@ struct gk20a {
895 void __iomem *bar1; 894 void __iomem *bar1;
896 void __iomem *bar1_saved; 895 void __iomem *bar1_saved;
897 896
897 const char *name;
898
898 bool gpu_reset_done; 899 bool gpu_reset_done;
899 bool power_on; 900 bool power_on;
900 bool suspended; 901 bool suspended;