iommu/msm: ->unmap() should return order of unmapped page
authorOhad Ben-Cohen <ohad@wizery.com>
Fri, 2 Sep 2011 17:32:34 +0000 (13:32 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 5 Sep 2011 13:15:14 +0000 (15:15 +0200)
commit9e28547f887c3040747d8422e1feef79bea93bd8
treefd00d3147a680c645dd31b73282acbe4efe23766
parentc6a389f123b9f68d605bb7e0f9b32ec1e3e14132
iommu/msm: ->unmap() should return order of unmapped page

Users of the IOMMU API (kvm specifically) assume that iommu_unmap()
returns the order of the unmapped page (on success).

Fix msm_iommu_unmap() accordingly.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Cc: David Brown <davidb@codeaurora.org>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/msm_iommu.c