From e57dc23fb18beda5d62c0df95e00b6885cce4a10 Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Mon, 6 Jan 2020 14:54:29 -0800 Subject: [PATCH] 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: Isaac J. Manjarres --- drivers/iommu/arm-smmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 6e0350aadcbd..148dcacbe482 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -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);