]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd758cd7859c14bc0a537241505def38a19850a2c
treec7fd39a4fccb61e0e7c2b4e37c9889d54b70d567
parentd4a7493977f3789752a031f833e9f1ba34a3f3c6
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