summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Honza <honza@ti.com>2011-10-25 10:51:39 +0800
committerAndy Green <andy.green@linaro.org>2011-10-25 10:51:39 +0800
commit31fe244ba684a6ae4b13f8d87942f8847ce62c83 (patch)
treeb5bab457b36d0e088040015f79e5968572b35a68
parent57b8ebd4a8123917914c5fa3105f67ccb3bb43ac (diff)
syslink: procmgr: initialize is_cached parameter before unmap
The is_cached parameter is not initialized prior to calling platform_mem_unmap from proc4430_detach. This change sets the is_cached parameter to false to match the value used when mapped so that the memory entries are now unmapped consistently. Change-Id: I7690d317093cd82c13c9894e8cbc0fb2432dff02 Signed-off-by: Bryan Honza <honza@ti.com>
-rw-r--r--drivers/dsp/syslink/procmgr/proc4430/proc4430.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
index f3fb7887823..65379282fcf 100644
--- a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
+++ b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
@@ -556,6 +556,7 @@ int proc4430_detach(void *handle)
unmap_info.addr =
object->params.mem_entries[i].master_virt_addr;
unmap_info.size = object->params.mem_entries[i].size;
+ unmap_info.is_cached = false;
platform_mem_unmap(&unmap_info);
object->params.mem_entries[i].master_virt_addr =
(u32)-1;