iommu/arm-smmu-v3: Unregister IOMMU and bus ops on device removal
authorWill Deacon <will@kernel.org>
Thu, 19 Dec 2019 12:03:47 +0000 (12:03 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 23 Dec 2019 13:06:05 +0000 (14:06 +0100)
commitab246774713e9042d7c79c61168c73796b2a3961
treecadeab78e9dc301b7ad44d42f0244831e78c3568
parent34debdca68efd5625a2fcea7df1a215591a01f80
iommu/arm-smmu-v3: Unregister IOMMU and bus ops on device removal

When removing the SMMUv3 driver, we need to clear any state that we
registered during probe. This includes our bus ops, sysfs entries and
the IOMMU device registered for early firmware probing of masters.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: John Garry <john.garry@huawei.com> # smmu v3
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu-v3.c