summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>2009-08-28 10:54:40 -0700
committerTony Lindgren <tony@atomide.com>2009-08-28 10:54:40 -0700
commit613f77696e2c489e87def86a443fb4889acb95aa (patch)
treebe0136dc4030329059f5f5a454580a9d9e89c1dc /arch/arm
parentaf933f4729f2cc25306f1a514d55c248da480d66 (diff)
downloadlinux-613f77696e2c489e87def86a443fb4889acb95aa.tar.gz
linux-613f77696e2c489e87def86a443fb4889acb95aa.tar.bz2
linux-613f77696e2c489e87def86a443fb4889acb95aa.zip
OMAP: iommu: fix wrong argument in flush_cache_vmap()
The second argument should be the end address, not the length. Actually there will not be any effect on the behavior of this driver since flush_cache_vmap() calls flush_cache_all() in the end. Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/iovmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 2fce2c151a95..6fc52fcbdc03 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -199,7 +199,7 @@ static void *vmap_sg(const struct sg_table *sgt)
va += bytes;
}
- flush_cache_vmap(new->addr, total);
+ flush_cache_vmap(new->addr, new->addr + total);
return new->addr;
err_out: