summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-03-06 08:33:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-06 08:33:43 +0100
commit0e055c254c3eab40b52b3ac5f845a889bd281e05 (patch)
tree4f849bb3d50194ebc091b8be25b1b5072d73d063 /include/of.h
parent9524e7d0d7d22fbc9bde4fcebc7eeb6a12763c12 (diff)
parentfba2adcb3d50e86d4e26da9126c1ef6424e348e6 (diff)
downloadbarebox-0e055c254c3eab40b52b3ac5f845a889bd281e05.tar.gz
barebox-0e055c254c3eab40b52b3ac5f845a889bd281e05.tar.xz
Merge branch 'for-next/mtd-partitions'
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 5273f87ebd..2ad941864f 100644
--- a/include/of.h
+++ b/include/of.h
@@ -623,6 +623,8 @@ static inline struct device_node *of_find_matching_node(
for (dn = of_find_node_with_property(NULL, prop_name); dn; \
dn = of_find_node_with_property(dn, prop_name))
+#define for_each_child_of_node_safe(parent, tmp, child) \
+ list_for_each_entry_safe(child, tmp, &parent->children, parent_list)
#define for_each_child_of_node(parent, child) \
list_for_each_entry(child, &parent->children, parent_list)
#define for_each_available_child_of_node(parent, child) \