From: Laxman Dewangan Date: Thu, 3 Oct 2013 14:06:37 +0000 (+0530) Subject: regulator: palmas: get regulators node from parent node only X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~16^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc1ccadb85fc47238e9d92b2336c04c9fc64d53;p=pandora-kernel.git regulator: palmas: get regulators node from parent node only The device tree binding of Palmas regulator driver says as: palmas_pmis { compatible = "ti,palmas-pmic"; ... regulators { ... } }; In this "regulators" subnode is expected to be part of parent node, not the outside of parent node. Hence to get the regulator node, the correct call is of_get_child_by_name() rather than of_find_node_by_name() which actually searches the "regulators" node from the parent node to end of DTS file. Signed-off-by: Laxman Dewangan Reviewed-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed