]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: fix a compiling warning about dma-mapping
authorBryan Wu <bryan.wu@analog.com>
Tue, 24 Jul 2007 07:38:16 +0000 (15:38 +0800)
committerBryan Wu <bryan.wu@analog.com>
Tue, 24 Jul 2007 07:38:16 +0000 (15:38 +0800)
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/kernel/dma-mapping.c

index ea48d5b13f11469a18faebbd15461def98ef5d23..94d7b119b71ec6637e8b49a23d4f10b98f723a02 100644 (file)
@@ -160,7 +160,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
        BUG_ON(direction == DMA_NONE);
 
        for (i = 0; i < nents; i++, sg++) {
-               sg->dma_address = page_address(sg->page) + sg->offset;
+               sg->dma_address = (dma_addr_t)(page_address(sg->page) +
+                                       sg->offset);
 
                invalidate_dcache_range(sg_dma_address(sg),
                                        sg_dma_address(sg) +