ANDROID: iommu/arm-smmu-v3-kvm: Unregister IOMMU on remove

This was missed in the upstream posting.

Bug: 357781595
Bug: 384432312
Change-Id: I446dbbea2507710ac5e67bee1f9c56900ebf3a0e
Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
Mostafa Saleh
2025-01-07 11:57:26 +00:00
parent d4772b152b
commit cd15b54d08
@@ -890,6 +890,7 @@ static void kvm_arm_smmu_remove(struct platform_device *pdev)
*/
arm_smmu_device_disable(smmu);
arm_smmu_update_gbpa(smmu, host_smmu->boot_gbpa, GBPA_ABORT);
arm_smmu_unregister_iommu(smmu);
}
static int kvm_arm_smmu_suspend(struct device *dev)