From 408e698180eb7c9aaebcb7057030873fbc2fbe4b Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 14 Mar 2024 09:50:05 -0500 Subject: [PATCH] apps: examples: load_fw: Do not re-init rproc mems list The memory list is already initialized before this callback is called. Remove this redundant initialization. Signed-off-by: Andrew Davis --- apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c | 1 - apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c | 1 - apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c | 1 - 3 files changed, 3 deletions(-) diff --git a/apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c b/apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c index 93575f95..2d72abc9 100644 --- a/apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c +++ b/apps/examples/load_fw/zynqmp_apu_lcm_rproc_example.c @@ -27,7 +27,6 @@ static struct remoteproc *apu_rproc_init(struct remoteproc *rproc, priv->rproc = rproc; priv->cpu_id = cpu_id; priv->rproc->ops = ops; - metal_list_init(&priv->rproc->mems); priv->rproc->priv = priv; rproc->state = RPROC_READY; return priv->rproc; diff --git a/apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c b/apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c index 1282f554..63b29bd5 100644 --- a/apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c +++ b/apps/examples/load_fw/zynqmp_r5_lcm_rproc_example.c @@ -115,7 +115,6 @@ struct remoteproc *r5_rproc_init(struct remoteproc *rproc, priv->rproc = rproc; priv->cpu_id = cpu_id; priv->rproc->ops = ops; - metal_list_init(&priv->rproc->mems); priv->rproc->priv = priv; priv->rpu_base = RPU_BASE_ADDR; metal_io_init(&priv->rpu_io, (void *)RPU_BASE_ADDR, &priv->rpu_base, diff --git a/apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c b/apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c index 4dd6cd61..b590a210 100644 --- a/apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c +++ b/apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c @@ -25,7 +25,6 @@ static struct remoteproc *rpu_rproc_init(struct remoteproc *rproc, priv->rproc = rproc; priv->cpu_id = cpu_id; priv->rproc->ops = ops; - metal_list_init(&priv->rproc->mems); priv->rproc->priv = priv; rproc->state = RPROC_READY; return priv->rproc;