On Mon, Dec 06, 2021 at 08:13:57PM +0530, Satya Priya Kakitapalli (Temp) wrote:
On 11/25/2021 9:15 PM, Mark Brown wrote:Why is this in every iteration of the loop?
On Fri, Nov 19, 2021 at 03:12:31PM +0530, Satya Priya wrote:Not sure what you meant here. could you elaborate a bit?
+ child_node = of_get_child_by_name(parent_node, reg->name);This could be pulled out of the array.
+ if (!child_node) {
+ dev_err(dev, "child node %s not found\n", reg->name);
+ return -ENODEV;
+ }