diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c index fba3cc63..ba13c54e 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/css_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, |
@@ -33,7 +33,6 @@ static struct tegra_hv_ivm_cookie *vgpu_css_reserve_mempool(struct gk20a *g) | |||
33 | struct device *dev = dev_from_gk20a(g); | 33 | struct device *dev = dev_from_gk20a(g); |
34 | struct device_node *np = dev->of_node; | 34 | struct device_node *np = dev->of_node; |
35 | struct of_phandle_args args; | 35 | struct of_phandle_args args; |
36 | struct device_node *hv_np; | ||
37 | struct tegra_hv_ivm_cookie *cookie; | 36 | struct tegra_hv_ivm_cookie *cookie; |
38 | u32 mempool; | 37 | u32 mempool; |
39 | int err; | 38 | int err; |
@@ -45,9 +44,8 @@ static struct tegra_hv_ivm_cookie *vgpu_css_reserve_mempool(struct gk20a *g) | |||
45 | return ERR_PTR(err); | 44 | return ERR_PTR(err); |
46 | } | 45 | } |
47 | 46 | ||
48 | hv_np = args.np; | ||
49 | mempool = args.args[0]; | 47 | mempool = args.args[0]; |
50 | cookie = tegra_hv_mempool_reserve(hv_np, mempool); | 48 | cookie = tegra_hv_mempool_reserve(mempool); |
51 | if (IS_ERR_OR_NULL(cookie)) { | 49 | if (IS_ERR_OR_NULL(cookie)) { |
52 | nvgpu_err(g, "mempool %u reserve failed", mempool); | 50 | nvgpu_err(g, "mempool %u reserve failed", mempool); |
53 | return ERR_PTR(-EINVAL); | 51 | return ERR_PTR(-EINVAL); |