aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remoteproc/ethosu_remoteproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoteproc/ethosu_remoteproc.c b/remoteproc/ethosu_remoteproc.c
index 0369156..87de3b0 100644
--- a/remoteproc/ethosu_remoteproc.c
+++ b/remoteproc/ethosu_remoteproc.c
@@ -270,8 +270,8 @@ static int ethosu_rproc_handle_rsc(struct rproc *rproc,
}
for (i = 0U; i < num_ranges; ++i) {
- map = &dev->dma_range_map[i];
struct fw_rsc_map_range *range = &mapping->range[i];
+ map = &dev->dma_range_map[i];
range->da = map->dma_start;
range->pa = map->cpu_start;