iommu/arm-smmu: Return 0 on unmap failure
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 28 Feb 2014 15:37:10 +0000 (15:37 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 15 Apr 2014 11:19:33 +0000 (12:19 +0100)
commit16c50dcfc4c186ed09a4d80fbd511492d024a1c5
treea3a7fb799c35082d7105e71a4d189ae63a4caa47
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
iommu/arm-smmu: Return 0 on unmap failure

The IOMMU core expects the unmap operation to return the number of bytes
that have been unmapped or 0 on failure, a negative return value being
treated like a number of bytes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c