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)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent c603acc commit a570fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)