]> www.infradead.org Git - users/hch/misc.git/commit
iommu: Resolve ops in iommu_init_device()
authorRobin Murphy <robin.murphy@arm.com>
Fri, 28 Feb 2025 15:46:31 +0000 (15:46 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 11 Mar 2025 13:05:41 +0000 (14:05 +0100)
commitfd598f71b66975c042f40ae7cd4310d6e699e149
treece71b7e4a880ac82204aaf81316e7d243ab100f0
parentb46064a18810bad3aea089a79993ca5ea7a3d2b2
iommu: Resolve ops in iommu_init_device()

Since iommu_init_device() was factored out, it is in fact the only
consumer of the ops which __iommu_probe_device() is resolving, so let it
do that itself rather than passing them in. This also puts the ops
lookup at a more logical point relative to the rest of the flow through
__iommu_probe_device().

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/fa4b6cfc67a352488b7f4e0b736008307ce9ac2e.1740753261.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c