Blackfin arch: fix a compiling warning about dma-mapping

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
Bryan Wu 2007-07-24 15:38:16 +08:00
parent 12a7991180
commit d6e274ddb5
1 changed files with 2 additions and 1 deletions

View 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) +