OSDN Git Service

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

When removing the SMMU 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.c