diff options
author | Tom Rini <trini@konsulko.com> | 2017-09-12 09:32:51 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-12 09:32:51 -0400 |
commit | de2ad2c40db389e4747f566e44aa7f1a1aec91fb (patch) | |
tree | 76bd1340bc1b8b25e5acffeed74bceea5913969a /drivers/power/pmic | |
parent | d81a1de96e2636163783c342b8fda965e696e382 (diff) | |
parent | ee87a097b0f66158ce2985940a5f28ba15a3552d (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/power/pmic')
-rw-r--r-- | drivers/power/pmic/pmic-uclass.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index 953bbe5026..64964e4e96 100644 --- a/drivers/power/pmic/pmic-uclass.c +++ b/drivers/power/pmic/pmic-uclass.c @@ -34,9 +34,7 @@ int pmic_bind_children(struct udevice *pmic, ofnode parent, debug("%s for '%s' at node offset: %d\n", __func__, pmic->name, dev_of_offset(pmic)); - for (node = ofnode_first_subnode(parent); - ofnode_valid(node); - node = ofnode_next_subnode(node)) { + ofnode_for_each_subnode(node, parent) { node_name = ofnode_get_name(node); debug("* Found child node: '%s'\n", node_name); |