diff options
author | Sanjeev Premi <premi@ti.com> | 2009-09-24 19:23:12 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-09-24 19:23:12 -0400 |
commit | 6716bd06810c64ef0ca4c12462fb2eb2352a7df9 (patch) | |
tree | 6cfb014cf9bff215fba23bc9b8871ce327d42ba3 /arch | |
parent | 8828880d09e4466ad6b357a31fdd242594c7b111 (diff) |
omap: iovmm: Fix compiler warning
This patch fixes these compiler warnings:
arch/arm/plat-omap/iovmm.c: In function 'vmap_sg':
arch/arm/plat-omap/iovmm.c:202: warning: passing argument 1 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c:202: warning: passing argument 2 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c: In function 'sgtable_fill_vmalloc':
arch/arm/plat-omap/iovmm.c:393: warning: passing argument 1 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c:393: warning: passing argument 2 of
'flush_cache_vmap' makes integer from pointer without a cast
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-omap/iovmm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 6fc52fcbdc03..57f7122a0919 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c | |||
@@ -199,7 +199,8 @@ static void *vmap_sg(const struct sg_table *sgt) | |||
199 | va += bytes; | 199 | va += bytes; |
200 | } | 200 | } |
201 | 201 | ||
202 | flush_cache_vmap(new->addr, new->addr + total); | 202 | flush_cache_vmap((unsigned long)new->addr, |
203 | (unsigned long)(new->addr + total)); | ||
203 | return new->addr; | 204 | return new->addr; |
204 | 205 | ||
205 | err_out: | 206 | err_out: |
@@ -390,7 +391,7 @@ static void sgtable_fill_vmalloc(struct sg_table *sgt, void *_va) | |||
390 | } | 391 | } |
391 | 392 | ||
392 | va_end = _va + PAGE_SIZE * i; | 393 | va_end = _va + PAGE_SIZE * i; |
393 | flush_cache_vmap(_va, va_end); | 394 | flush_cache_vmap((unsigned long)_va, (unsigned long)va_end); |
394 | } | 395 | } |
395 | 396 | ||
396 | static inline void sgtable_drain_vmalloc(struct sg_table *sgt) | 397 | static inline void sgtable_drain_vmalloc(struct sg_table *sgt) |