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>
(cherry picked from commit fc10cca69e
git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/smmu)
Change-Id: I98dd7b9155dab7dc6890f1bc61f49c124b7eca36
Signed-off-by: Will Deacon <willdeacon@google.com>