iommmu/of: Do not return struct iommu_ops from of_iommu_configure()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 7 Dec 2023 18:03:09 +0000 (14:03 -0400)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:18:47 +0000 (10:18 +0100)
commit6ff6e184f1f4d4993d45ca3f934c8288890965fe
treede774399bb41b1ad5ad572670adaec7fa7a9bb4e
parent4720287c7bf76e59d19d4dfbdc3f54eeea6fd46b
iommmu/of: Do not return struct iommu_ops from of_iommu_configure()

Nothing needs this pointer. Return a normal error code with the usual
IOMMU semantic that ENODEV means 'there is no IOMMU driver'.

Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v2-16e4def25ebb+820-iommu_fwspec_p1_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/of_iommu.c
drivers/of/device.c
include/linux/of_iommu.h