Merge tag 'trace-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
[sfrench/cifs-2.6.git] / drivers / of / property.c
index fa8cd33be1312dc57f075cf6557270794dcc2939..c907478ef89e67157763d26ea5cddbabfb02ec16 100644 (file)
@@ -665,7 +665,7 @@ struct device_node *of_graph_get_next_endpoint(const struct device_node *parent,
                of_node_put(node);
 
                if (!port) {
-                       pr_err("graph: no port node found in %pOF\n", parent);
+                       pr_debug("graph: no port node found in %pOF\n", parent);
                        return NULL;
                }
        } else {
@@ -814,10 +814,16 @@ struct device_node *of_graph_get_remote_port(const struct device_node *node)
 }
 EXPORT_SYMBOL(of_graph_get_remote_port);
 
-int of_graph_get_endpoint_count(const struct device_node *np)
+/**
+ * of_graph_get_endpoint_count() - get the number of endpoints in a device node
+ * @np: parent device node containing ports and endpoints
+ *
+ * Return: count of endpoint of this device node
+ */
+unsigned int of_graph_get_endpoint_count(const struct device_node *np)
 {
        struct device_node *endpoint;
-       int num = 0;
+       unsigned int num = 0;
 
        for_each_endpoint_of_node(np, endpoint)
                num++;