mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
iommu/arm-smmu: Add missing iommu_device_unregister()
The remove() callback for the ARM SMMU driver should ensure the SMMU devices that are being registered are no longer visible to the IOMMU framework, so remove the devices by invoking iommu_device_unregister(). Change-Id: I87dd7b4619e5b26b7eed64b04e3716f3b9c417c5 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
90ae165d38
commit
fa1dabd437
1 changed files with 1 additions and 0 deletions
|
|
@ -4833,6 +4833,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
|
|||
dev_err(&pdev->dev, "removing device with active domains!\n");
|
||||
|
||||
arm_smmu_bus_init(NULL);
|
||||
iommu_device_unregister(&smmu->iommu);
|
||||
idr_destroy(&smmu->asid_idr);
|
||||
|
||||
/* Turn the thing off */
|
||||
|
|
|
|||
Loading…
Reference in a new issue