Commit 2f20fc4f authored by Lucas Stach's avatar Lucas Stach

drm/etnaviv: use memset32 to init pagetable

Now that memset32 is available, the open-coded pagetable initialization
loop can be replaced.
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 2e3a2dda
...@@ -70,9 +70,8 @@ static int __etnaviv_iommu_init(struct etnaviv_iommuv1_domain *etnaviv_domain) ...@@ -70,9 +70,8 @@ static int __etnaviv_iommu_init(struct etnaviv_iommuv1_domain *etnaviv_domain)
return -ENOMEM; return -ENOMEM;
} }
for (i = 0; i < PT_ENTRIES; i++) memset32(etnaviv_domain->pgtable_cpu, etnaviv_domain->base.bad_page_dma,
etnaviv_domain->pgtable_cpu[i] = PT_ENTRIES);
etnaviv_domain->base.bad_page_dma;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment