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
1 changed files with 2 additions and 1 deletions
|
|
@ -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) +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue