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: I053aeb256f591af2ea9ef5094a20e33a395cdd33
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1328535
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Terje Bergstrom
2017-03-24 10:55:21 -07:00
committed by mobile promotions
parent 1bce980d09
commit 9773dbf905

View File

@@ -203,7 +203,7 @@ int gv11b_init_hal(struct gk20a *g)
gv11b_init_regops(gops);
gv11b_init_therm_ops(gops);
gk20a_init_tsg_ops(gops);
gops->name = "gv11b";
g->name = "gv11b";
gops->chip_init_gpu_characteristics = gv11b_init_gpu_characteristics;
gops->get_litter_value = gv11b_get_litter_value;