Skip to contentSkip to conversation

iommu/tegra: smmu: Use dt-bindings MACRO

PATCH Superseded Hiroshi Doyu 1 participant 1 message Jun 26, 2013

Subsystems (3)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 20/23 iommu/tegra: smmu: Use dt-bindings MACRO

Use dt-bindings MACRO instead of SoC dependent MACROs.

---
 drivers/iommu/tegra-smmu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/iommu/tegra-smmu.c +3 -1
index ae71721..50eb843 100644
@@ -41,6 +41,8 @@
 #include <asm/cacheflush.h>
 #include <asm/dma-iommu.h>
 
+#include <dt-bindings/iommu/tegra-swgid.h>
+
 /* bitmap of the page sizes currently supported */
 #define SMMU_IOMMU_PGSIZES	(SZ_4K)
 
@@ -747,7 +749,7 @@ static int smmu_iommu_attach_dev(struct iommu_domain *domain,
 	 * Reserve "page zero" for AVP vectors using a common dummy
 	 * page.
 	 */
-	if (map & HWG_AVPC) {
+	if (map & SWGID(AVPC)) {
 		struct page *page;
 
 		page = as->smmu->avp_vector_page;
Signature · 1 line
1.8.1.5