iommu/arm: Remove code duplication in all IOMMU drivers
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Thu, 27 Jan 2022 19:55:52 +0000 (21:55 +0200)
committerJulien Grall <jgrall@amazon.com>
Mon, 31 Jan 2022 18:33:31 +0000 (18:33 +0000)
commit481ee6125aa1d5751f52eda677c7bab4719c0ad0
treecd31e07a1fc5fe8a04cb281d62d22ef532f6a945
parentc52af96fdcac9eff31465f39c0ffcceadca9ac9f
iommu/arm: Remove code duplication in all IOMMU drivers

All IOMMU drivers on Arm perform almost the same generic actions in
hwdom_init callback. Move this code to common arch_iommu_hwdom_init()
in order to get rid of code duplication.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Acked-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/drivers/passthrough/arm/iommu.c
xen/drivers/passthrough/arm/ipmmu-vmsa.c
xen/drivers/passthrough/arm/smmu-v3.c
xen/drivers/passthrough/arm/smmu.c