diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-02 23:13:37 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-16 22:57:20 -0500 |
commit | 85e99b9fffb62e101e38c74c935256fc589703c2 (patch) | |
tree | 60e27e43527332ac21be5c1c0ee95f11a61d6cf1 /arch/powerpc/kernel/of_platform.c | |
parent | e25c47ffa97ca5e4602593b03ce6d21cff652864 (diff) |
[POWERPC] arch/powerpc/kernel: Use for_each_child_of_node
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/of_platform.c')
-rw-r--r-- | arch/powerpc/kernel/of_platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c index 7a3cafbe8af9..fb698d47082d 100644 --- a/arch/powerpc/kernel/of_platform.c +++ b/arch/powerpc/kernel/of_platform.c | |||
@@ -109,7 +109,7 @@ static int of_platform_bus_create(const struct device_node *bus, | |||
109 | struct of_device *dev; | 109 | struct of_device *dev; |
110 | int rc = 0; | 110 | int rc = 0; |
111 | 111 | ||
112 | for (child = NULL; (child = of_get_next_child(bus, child)); ) { | 112 | for_each_child_of_node(bus, child) { |
113 | pr_debug(" create child: %s\n", child->full_name); | 113 | pr_debug(" create child: %s\n", child->full_name); |
114 | dev = of_platform_device_create(child, NULL, parent); | 114 | dev = of_platform_device_create(child, NULL, parent); |
115 | if (dev == NULL) | 115 | if (dev == NULL) |
@@ -171,7 +171,7 @@ int of_platform_bus_probe(struct device_node *root, | |||
171 | rc = of_platform_bus_create(root, matches, &dev->dev); | 171 | rc = of_platform_bus_create(root, matches, &dev->dev); |
172 | goto bail; | 172 | goto bail; |
173 | } | 173 | } |
174 | for (child = NULL; (child = of_get_next_child(root, child)); ) { | 174 | for_each_child_of_node(root, child) { |
175 | if (!of_match_node(matches, child)) | 175 | if (!of_match_node(matches, child)) |
176 | continue; | 176 | continue; |
177 | 177 | ||