virt: tegra_hv: remove parameter dn from tegra_hv_mempool_reserve()

Device tree node was not used by the function, so remove it to make the
function more common.

Jira EVLR-2364

Change-Id: I0888773fa584eac2c2133c73d9385b700899fdf7
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1647029
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dennis Kou <dkou@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Richard Zhao
2018-01-26 16:21:59 -08:00
committed by Laxman Dewangan
parent 94f2fb429f
commit bc2c2bcde6

View File

@@ -222,24 +222,17 @@ static int setup_mempool(struct platform_device *pdev,
snprintf(name, sizeof(name), "mempool%d", i);
if (of_property_read_u32_index(dev->of_node, name,
PROP_MEMPOOL_INST, &inst) == 0) {
struct device_node *hv_dn;
struct gr_comm_mempool_context *ctx;
struct gr_comm_queue *queue =
&comm_context.queue[i];
hv_dn = of_parse_phandle(dev->of_node, name,
PROP_MEMPOOL_NODE);
if (!hv_dn)
goto fail;
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) {
ret = -ENOMEM;
goto fail;
}
ctx->cookie =
tegra_hv_mempool_reserve(hv_dn, inst);
ctx->cookie = tegra_hv_mempool_reserve(inst);
if (IS_ERR_OR_NULL(ctx->cookie)) {
ret = PTR_ERR(ctx->cookie);
kfree(ctx);