iommu: Move more initialization to __iommu_probe_device()
authorJoerg Roedel <jroedel@suse.de>
Wed, 29 Apr 2020 13:37:11 +0000 (15:37 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 May 2020 12:36:14 +0000 (14:36 +0200)
commit4e8906f0d84d1a7d3cf82a30a701b0fb5d48977c
treec191db0de05009cf64ad1faf996f2a4284b7d1b1
parent3eeeb45c6d0444b368cdeba9bdafa8bbcf5370d1
iommu: Move more initialization to __iommu_probe_device()

Move the calls to dev_iommu_get() and try_module_get() into
__iommu_probe_device(), so that the callers don't have to do it on
their own.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200429133712.31431-34-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c