summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>2009-08-28 19:54:40 +0200
committerTony Lindgren <tony@atomide.com>2009-08-28 19:54:40 +0200
commit613f77696e2c489e87def86a443fb4889acb95aa (patch)
treebe0136dc4030329059f5f5a454580a9d9e89c1dc /arch/arm/plat-omap
parentOMAP2: n8x0: add n8x0_defconfig (diff)
downloadlinux-613f77696e2c489e87def86a443fb4889acb95aa.tar.xz
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/plat-omap')
-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: