diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-24 13:55:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-28 15:05:03 -0400 |
commit | 9773dbf905acd7dbb7ebfbbdfae529ff6f9f8ab8 (patch) | |
tree | 7eab3b134f36da5751eb469dea87880cef9d430e /drivers | |
parent | 1bce980d09995947ff59b6d7f39cfaff51a70c74 (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: 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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index ef09fc68..32fd52d6 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -203,7 +203,7 @@ int gv11b_init_hal(struct gk20a *g) | |||
203 | gv11b_init_regops(gops); | 203 | gv11b_init_regops(gops); |
204 | gv11b_init_therm_ops(gops); | 204 | gv11b_init_therm_ops(gops); |
205 | gk20a_init_tsg_ops(gops); | 205 | gk20a_init_tsg_ops(gops); |
206 | gops->name = "gv11b"; | 206 | g->name = "gv11b"; |
207 | gops->chip_init_gpu_characteristics = gv11b_init_gpu_characteristics; | 207 | gops->chip_init_gpu_characteristics = gv11b_init_gpu_characteristics; |
208 | gops->get_litter_value = gv11b_get_litter_value; | 208 | gops->get_litter_value = gv11b_get_litter_value; |
209 | 209 | ||