id = i;
i++;
}
+
+ of_node_put(node);
+
if (id < 0)
return -ENODEV;
if (!dai_name)
return 0;
- /*
- * of_graph_get_port_parent() will call
- * of_node_put(). So, call of_node_get() here
- */
- of_node_get(ep);
node = of_graph_get_port_parent(ep);
/* Get dai->name */