提交 d6e274dd 编写于 作者: B Bryan Wu

Blackfin arch: fix a compiling warning about dma-mapping

Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 12a79911
......@@ -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) +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册