Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: da9055: Use of_get_child_by_name

of_find_node_by_name walks the allnodes list, and can thus walk
outside of the parent node. Use of_get_child_by_name instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
a4b4e66a dae6cdb4

+1 -1
+1 -1
drivers/regulator/da9055-regulator.c
··· 559 559 if (!nproot) 560 560 return -ENODEV; 561 561 562 - np = of_find_node_by_name(nproot, "regulators"); 562 + np = of_get_child_by_name(nproot, "regulators"); 563 563 if (!np) 564 564 return -ENODEV; 565 565