aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorDong Aisheng <dong.aisheng@linaro.org>2011-12-22 07:19:24 -0500
committerRob Herring <rob.herring@calxeda.com>2011-12-27 11:57:37 -0500
commit8af0da93da7c40526959ab5291964581c678d3e7 (patch)
tree15e7be8b0b0f1dcd46af14b680b5487a4452e501 /drivers/of
parent7b482c8360d368fd495685a2c69ca4f1e7b29764 (diff)
dt: reform for_each_property to for_each_property_of_node
Make this macro easier to use(do not need to pass properties, a node is enough), also change to a more sensible name as for_each_child_of_node. Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index b7072437eb8c..0181eeb88c92 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1157,7 +1157,7 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
1157 if (!of_aliases) 1157 if (!of_aliases)
1158 return; 1158 return;
1159 1159
1160 for_each_property(pp, of_aliases->properties) { 1160 for_each_property_of_node(of_aliases, pp) {
1161 const char *start = pp->name; 1161 const char *start = pp->name;
1162 const char *end = start + strlen(start); 1162 const char *end = start + strlen(start);
1163 struct device_node *np; 1163 struct device_node *np;