summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2014-09-18 18:56:58 +0100
committerAndrey Konovalov <andrey.konovalov@linaro.org>2015-04-14 17:29:34 +0300
commitbd19b3bd336937cf5e65c39f42653fe1385f1e70 (patch)
tree016f6be5391865950b40081906f494e70be64c6d /drivers/iommu
parent3661dfdd5634d96ac2e397f926549ba13265add3 (diff)
iommu:msm: fix compilation error.
As part of Rob Clarks cleanup one of the flags have been renamed in header which introduced a compilation failure. drivers/iommu/msm_iommu.c: In function ‘msm_iommu_map’: drivers/iommu/msm_iommu.c:426:7: error: ‘FL_AP_READ’ undeclared (first use in this function) drivers/iommu/msm_iommu.c:426:7: note: each undeclared identifier is reported only once for each function it appears in drivers/iommu/msm_iommu.c:426:20: error: ‘FL_AP_WRITE’ undeclared (first use in this function) make[3]: *** [drivers/iommu/msm_iommu.o] Error 1 make[2]: *** [drivers/iommu] Error 2 make[1]: *** [drivers] Error 2 iThis patch fixes the error by using the new flags in the driver. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/msm_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c
index e1b05379ca0e..19c5e0141aaa 100644
--- a/drivers/iommu/msm_iommu.c
+++ b/drivers/iommu/msm_iommu.c
@@ -422,12 +422,12 @@ static int msm_iommu_map(struct iommu_domain *domain, unsigned long va,
int i = 0;
for (i = 0; i < 16; i++)
*(fl_pte+i) = (pa & 0xFF000000) | FL_SUPERSECTION |
- FL_AP_READ | FL_AP_WRITE | FL_TYPE_SECT |
+ FL_AP1 | FL_AP0 | FL_TYPE_SECT |
FL_SHARED | FL_NG | pgprot;
}
if (len == SZ_1M)
- *fl_pte = (pa & 0xFFF00000) | FL_AP_READ | FL_AP_WRITE | FL_NG |
+ *fl_pte = (pa & 0xFFF00000) | FL_AP1 | FL_AP0 | FL_NG |
FL_TYPE_SECT | FL_SHARED | pgprot;
/* Need a 2nd level table */