aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-10-13 12:53:24 -0400
committerWill Deacon <will.deacon@arm.com>2015-10-15 11:29:54 -0400
commitc88ae5de71629e4b5e4075897d9980a7b079d122 (patch)
treef0359881a7ee1d09b23cb133d0f11326db30f95b /drivers/iommu
parentc0733a2cf30c1e7923b6ad4f8df67941502923de (diff)
iommu/arm-smmu: Remove redundant calculation of gr0 base address
Since commit 1463fe44fd0f ("iommu/arm-smmu: Don't use VMIDs for stage-1 translations"), we don't need the GR0 base address when initialising a context bank, so remove the useless local variable and its init code. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/arm-smmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 9aadf36a0747..7c20a68b5a95 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -709,9 +709,8 @@ static void arm_smmu_init_context_bank(struct arm_smmu_domain *smmu_domain,
709 bool stage1; 709 bool stage1;
710 struct arm_smmu_cfg *cfg = &smmu_domain->cfg; 710 struct arm_smmu_cfg *cfg = &smmu_domain->cfg;
711 struct arm_smmu_device *smmu = smmu_domain->smmu; 711 struct arm_smmu_device *smmu = smmu_domain->smmu;
712 void __iomem *cb_base, *gr0_base, *gr1_base; 712 void __iomem *cb_base, *gr1_base;
713 713
714 gr0_base = ARM_SMMU_GR0(smmu);
715 gr1_base = ARM_SMMU_GR1(smmu); 714 gr1_base = ARM_SMMU_GR1(smmu);
716 stage1 = cfg->cbar != CBAR_TYPE_S2_TRANS; 715 stage1 = cfg->cbar != CBAR_TYPE_S2_TRANS;
717 cb_base = ARM_SMMU_CB_BASE(smmu) + ARM_SMMU_CB(smmu, cfg->cbndx); 716 cb_base = ARM_SMMU_CB_BASE(smmu) + ARM_SMMU_CB(smmu, cfg->cbndx);