mirror of https://gitee.com/openkylin/linux.git
Blackfin arch: fix a compiling warning about dma-mapping
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
parent
12a7991180
commit
d6e274ddb5
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue