iommu/tegra: gart: Fix gart_iommu_unmap()
authorDmitry Osipenko <digetx@gmail.com>
Mon, 9 Apr 2018 20:07:20 +0000 (23:07 +0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 3 May 2018 14:30:28 +0000 (16:30 +0200)
commit130a2fdf0b9e2305fd4dfbf7e6fb58c31df0fe8e
tree742c4f6827eaf65253d97ec01cf469b0caa43391
parent40c9b882fa74771544b0e41209e99d78685f94be
iommu/tegra: gart: Fix gart_iommu_unmap()

It must return the number of unmapped bytes on success, returning 0 means
that unmapping failed and in result only one page is unmapped.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-gart.c