aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring (Arm) <[email protected]>2024-11-04 13:06:49 -0600
committerGeorgi Djakov <[email protected]>2024-11-05 01:27:39 +0200
commita570feff16bd4fdaa247b4ef13f4d28f8c73903b (patch)
tree912ac0dbe1a87c479806d6c488b940cc8ad437a0
parentc603accc26b215c34fb6f8e01fa2902ff5ff398e (diff)
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]>
-rw-r--r--drivers/interconnect/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 8a993283da82..9d5404a07e8a 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -1081,7 +1081,7 @@ static int of_count_icc_providers(struct device_node *np)
int count = 0;
for_each_available_child_of_node(np, child) {
- if (of_property_read_bool(child, "#interconnect-cells") &&
+ if (of_property_present(child, "#interconnect-cells") &&
likely(!of_match_node(ignore_list, child)))
count++;
count += of_count_icc_providers(child);