Commit d6e274dd authored by Bryan Wu's avatar Bryan Wu

Blackfin arch: fix a compiling warning about dma-mapping

Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 12a79911
...@@ -160,7 +160,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, ...@@ -160,7 +160,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
BUG_ON(direction == DMA_NONE); BUG_ON(direction == DMA_NONE);
for (i = 0; i < nents; i++, sg++) { 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), invalidate_dcache_range(sg_dma_address(sg),
sg_dma_address(sg) + sg_dma_address(sg) +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment