diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-24 13:55:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-28 15:05:03 -0400 |
commit | 3e39798997f0726472e18a17462216094c084074 (patch) | |
tree | cf68b3fff464c1217fa28ec27f6c612d5cfc66fb /drivers/gpu/nvgpu/clk | |
parent | 580c8112f08281332cefea16243fcfbf27cd6bdd (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/clk')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index 9c954deb..0ccc7c53 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -514,7 +514,7 @@ static int nvgpu_clk_arb_install_fd(struct gk20a *g, | |||
514 | goto fail; | 514 | goto fail; |
515 | } | 515 | } |
516 | 516 | ||
517 | snprintf(name, sizeof(name), "%s-clk-fd%d", dev_name(g->dev), fd); | 517 | snprintf(name, sizeof(name), "%s-clk-fd%d", g->name, fd); |
518 | file = anon_inode_getfile(name, fops, dev, O_RDWR); | 518 | file = anon_inode_getfile(name, fops, dev, O_RDWR); |
519 | if (IS_ERR(file)) { | 519 | if (IS_ERR(file)) { |
520 | err = PTR_ERR(file); | 520 | err = PTR_ERR(file); |