iommu/omap: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 24 Jun 2025 12:22:31 +0000 (14:22 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Jun 2025 07:21:52 +0000 (09:21 +0200)
commit26d1c1f9e3111cac346346eb38eb2dc6a3c53993
treec0759ad4064f00338d4b014697affeb532a1be82
parent217d30bb8ee84feb0def7d31b93bce7ca52b5793
iommu/omap: Use syscon_regmap_lookup_by_phandle_args

Use syscon_regmap_lookup_by_phandle_args() which is a wrapper over
syscon_regmap_lookup_by_phandle() combined with getting the syscon
argument.  Except simpler code this annotates within one line that given
phandle has arguments, so grepping for code would be easier.

There is also no real benefit in printing errors on missing syscon
argument, because this is done just too late: runtime check on
static/build-time data.  Dtschema and Devicetree bindings offer the
static/build-time check for this already.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250624-syscon-phandle-args-iommu-v3-2-1a36487d69b8@linaro.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/omap-iommu.c