aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 647c3c7fd742..afcb0e3492cf 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1804,7 +1804,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
1804 * allocation (PTRS_PER_PGD). 1804 * allocation (PTRS_PER_PGD).
1805 */ 1805 */
1806#ifdef CONFIG_64BIT 1806#ifdef CONFIG_64BIT
1807 smmu->s1_output_size = min(39UL, size); 1807 smmu->s1_output_size = min((unsigned long)VA_BITS, size);
1808#else 1808#else
1809 smmu->s1_output_size = min(32UL, size); 1809 smmu->s1_output_size = min(32UL, size);
1810#endif 1810#endif