aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2007-11-29 14:46:54 -0500
committerPaul Mackerras <paulus@samba.org>2008-01-16 22:56:57 -0500
commitdc2e425857a95f2b5dcded188ec7e813ed92c30d (patch)
treebc80104e41761e7b957548a9c0e1b52b720b0ced /arch
parent3329c0d1b2de2eb9e156aa8c13ad639f54791f24 (diff)
[POWERPC] Use for_each macros in arch/powerpc/platforms/powermac
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/powermac/low_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c
index da2007e3db0e..864fbf4744c0 100644
--- a/arch/powerpc/platforms/powermac/low_i2c.c
+++ b/arch/powerpc/platforms/powermac/low_i2c.c
@@ -585,8 +585,7 @@ static void __init kw_i2c_probe(void)
585 struct device_node *np, *child, *parent; 585 struct device_node *np, *child, *parent;
586 586
587 /* Probe keywest-i2c busses */ 587 /* Probe keywest-i2c busses */
588 for (np = NULL; 588 for_each_compatible_node(np, "i2c","keywest-i2c") {
589 (np = of_find_compatible_node(np, "i2c","keywest-i2c")) != NULL;){
590 struct pmac_i2c_host_kw *host; 589 struct pmac_i2c_host_kw *host;
591 int multibus, chans, i; 590 int multibus, chans, i;
592 591