Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e57dc23f authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

iommu/arm-smmu: Unregister TBU driver when unloading the SMMU module



When the ARM SMMU module is unloaded, the exit routine does not
fully clean-up after the initialization routine, as it leaves
the TBU driver registered. Thus, unregister the TBU driver
when unloading the SMMU module.

Change-Id: I536f756dab7eebeffe0dd907629feed6657a2532
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent fa1dabd4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4930,7 +4930,8 @@ static int __init arm_smmu_init(void)

static void __exit arm_smmu_exit(void)
{
	return platform_driver_unregister(&arm_smmu_driver);
	platform_driver_unregister(&arm_smmu_driver);
	platform_driver_unregister(&qsmmuv500_tbu_driver);
}

subsys_initcall(arm_smmu_init);