Skip to content

Commit a570fef

Browse files
robherringGeorgi Djakov
authored andcommitted
interconnect: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org> Link: https://lore.kernel.org/r/20241104190650.275278-1-robh@kernel.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
1 parent c603acc commit a570fef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/interconnect/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ static int of_count_icc_providers(struct device_node *np)
10811081
int count = 0;
10821082

10831083
for_each_available_child_of_node(np, child) {
1084-
if (of_property_read_bool(child, "#interconnect-cells") &&
1084+
if (of_property_present(child, "#interconnect-cells") &&
10851085
likely(!of_match_node(ignore_list, child)))
10861086
count++;
10871087
count += of_count_icc_providers(child);

0 commit comments

Comments
 (0)