diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-03 15:13:37 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-17 14:57:20 +1100 |
commit | 85e99b9fffb62e101e38c74c935256fc589703c2 (patch) | |
tree | 60e27e43527332ac21be5c1c0ee95f11a61d6cf1 /arch/powerpc/kernel/of_platform.c | |
parent | e25c47ffa97ca5e4602593b03ce6d21cff652864 (diff) | |
download | linux-85e99b9fffb62e101e38c74c935256fc589703c2.tar.gz linux-85e99b9fffb62e101e38c74c935256fc589703c2.tar.bz2 linux-85e99b9fffb62e101e38c74c935256fc589703c2.zip |
[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, struct of_device *dev; int rc = 0; - for (child = NULL; (child = of_get_next_child(bus, child)); ) { + for_each_child_of_node(bus, child) { pr_debug(" create child: %s\n", child->full_name); dev = of_platform_device_create(child, NULL, parent); if (dev == NULL) @@ -171,7 +171,7 @@ int of_platform_bus_probe(struct device_node *root, rc = of_platform_bus_create(root, matches, &dev->dev); goto bail; } - for (child = NULL; (child = of_get_next_child(root, child)); ) { + for_each_child_of_node(root, child) { if (!of_match_node(matches, child)) continue; |