From: Hiroshi Doyu Date: Mon, 30 Jul 2012 05:39:19 +0000 (+0300) Subject: iommu/tegra: smmu: Fix error initial value at domain_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d1d076f16376066d0a51aa7d465f43059da71562;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git iommu/tegra: smmu: Fix error initial value at domain_init err initial value should be -EAGAIN. Otherwise 2nd iteration always fails in the case as[0] is occupied. Signed-off-by: Hiroshi Doyu Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 37669cc483b1..2a4bb36bc688 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -806,7 +806,7 @@ out: static int smmu_iommu_domain_init(struct iommu_domain *domain) { - int i, err = -ENODEV; + int i, err = -EAGAIN; unsigned long flags; struct smmu_as *as; struct smmu_device *smmu = smmu_handle;