]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fc7b4b0dbe944fa1a058fe7833933b667faf634
treecadeab78e9dc301b7ad44d42f0244831e78c3568
parent12f49e967857fb05ce8597cd789c206457c0cf6d
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