]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit881b6754228ec9cf43728e43ba0ccb32aa7b6a84
treec191db0de05009cf64ad1faf996f2a4284b7d1b1
parent721f121a1379a0b51c54c3a604536ae46beccd60
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