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)
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

Simple merge