iommu/tegra: smmu: Use dt-bindings MACRO
Subsystems (3)
PATCH 20/23 iommu/tegra: smmu: Use dt-bindings MACRO
Use dt-bindings MACRO instead of SoC dependent MACROs.
Signed-off-by Hiroshi Doyu <[email protected]>
--- drivers/iommu/tegra-smmu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/iommu/tegra-smmu.c +3 -1
@@ -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