Skip to content

Commit 0c04316

Browse files
robherringjoergroedel
authored andcommitted
iommu/omap: Use of_property_read_bool() for boolean properties
It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to of_property_read_bool(). Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent e8d018d commit 0c04316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/omap-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ static int omap_iommu_probe(struct platform_device *pdev)
11911191
return err;
11921192
if (obj->nr_tlb_entries != 32 && obj->nr_tlb_entries != 8)
11931193
return -EINVAL;
1194-
if (of_find_property(of, "ti,iommu-bus-err-back", NULL))
1194+
if (of_property_read_bool(of, "ti,iommu-bus-err-back"))
11951195
obj->has_bus_err_back = MMU_GP_REG_BUS_ERR_BACK_EN;
11961196

11971197
obj->dev = &pdev->dev;

0 commit comments

Comments
 (0)