diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c index 5344313a..bf692c4d 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/fecs_trace_vgpu.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -43,7 +43,6 @@ int vgpu_fecs_trace_init(struct gk20a *g) | |||
43 | struct device *dev = dev_from_gk20a(g); | 43 | struct device *dev = dev_from_gk20a(g); |
44 | struct device_node *np = dev->of_node; | 44 | struct device_node *np = dev->of_node; |
45 | struct of_phandle_args args; | 45 | struct of_phandle_args args; |
46 | struct device_node *hv_np; | ||
47 | struct vgpu_fecs_trace *vcst; | 46 | struct vgpu_fecs_trace *vcst; |
48 | u32 mempool; | 47 | u32 mempool; |
49 | int err; | 48 | int err; |
@@ -62,9 +61,8 @@ int vgpu_fecs_trace_init(struct gk20a *g) | |||
62 | } | 61 | } |
63 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_FECS_CTXSW_TRACE, true); | 62 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_FECS_CTXSW_TRACE, true); |
64 | 63 | ||
65 | hv_np = args.np; | ||
66 | mempool = args.args[0]; | 64 | mempool = args.args[0]; |
67 | vcst->cookie = tegra_hv_mempool_reserve(hv_np, mempool); | 65 | vcst->cookie = tegra_hv_mempool_reserve(mempool); |
68 | if (IS_ERR(vcst->cookie)) { | 66 | if (IS_ERR(vcst->cookie)) { |
69 | dev_info(dev_from_gk20a(g), | 67 | dev_info(dev_from_gk20a(g), |
70 | "mempool %u reserve failed\n", mempool); | 68 | "mempool %u reserve failed\n", mempool); |