iommu: rk-iovmm: replace sg_dma_len(sg) with (sg)->length
authorJianqun xu <jay.xu@rock-chips.com>
Wed, 2 Dec 2015 09:09:21 +0000 (17:09 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 2 Dec 2015 10:18:08 +0000 (18:18 +0800)
commit79b0a9872aa1fdd5af8f3fa488d5594075a77a9e
tree027eceeb84072837063bb8bd859a673c5f6d6ea7
parent204b7d36bbe76d669445fcbd2444a803130ccb62
iommu: rk-iovmm: replace sg_dma_len(sg) with (sg)->length

If with CONFIG_NEED_SG_DMA_LENGTH,
sg_dma_len(sg) is defined as:
    ((sg)->dma_length)
else,
    ((sg)->length)

But ion_alloc calls sg_set_page to set "sg->length = len",
that is the issue.

Change-Id: Id9b4b0c727ff685b06aaa7572da7e7e054dce9a2
Signed-off-by: Jianqun xu <jay.xu@rock-chips.com>
drivers/iommu/rk-iovmm.c