]> www.infradead.org Git - users/willy/linux.git/commit
drivers/iommu: Initialise module 'owner' field in iommu_device_set_ops()
authorWill Deacon <will@kernel.org>
Thu, 9 Jan 2020 14:08:41 +0000 (14:08 +0000)
committerWill Deacon <will@kernel.org>
Fri, 10 Jan 2020 09:49:13 +0000 (09:49 +0000)
commitfc10cca69ee8af49778ad76c1e5fddf83d5026c8
tree0f0528392185f55511bb013b0b37b751db5e69eb
parent1ea27ee2f76e67f98b9942988f1336a70d351317
drivers/iommu: Initialise module 'owner' field in iommu_device_set_ops()

Requiring each IOMMU driver to initialise the 'owner' field of their
'struct iommu_ops' is error-prone and easily forgotten. Follow the
example set by PCI and USB by assigning THIS_MODULE automatically when
registering the ops structure with IOMMU core.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c
include/linux/iommu.h