diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-10-03 18:06:37 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-07 15:13:37 +0400 |
commit | acc1ccadb85fc47238e9d92b2336c04c9fc64d53 (patch) | |
tree | c96d9c6348f47e560cdbf65b07ea4515e8581eeb /drivers/rtc/rtc-stmp3xxx.c | |
parent | d0175e7e78ef6dddf13a67f968332b3e44a5995d (diff) | |
download | linux-acc1ccadb85fc47238e9d92b2336c04c9fc64d53.tar.xz |
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 <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/rtc/rtc-stmp3xxx.c')
0 files changed, 0 insertions, 0 deletions