Skip to content

Commit

Permalink
Blackfin arch: fix a compiling warning about dma-mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Bryan Wu committed Jul 24, 2007
1 parent 12a7991 commit d6e274d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/blackfin/kernel/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down

0 comments on commit d6e274d

Please sign in to comment.