]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Use for_each macros in arch/powerpc/platforms/powermac
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 29 Nov 2007 19:46:54 +0000 (06:46 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 Jan 2008 03:56:57 +0000 (14:56 +1100)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/low_i2c.c

index da2007e3db0e982c78431f38d8d07b44bef82afb..864fbf4744c0d2f61d451862053f35a9091f54bf 100644 (file)
@@ -585,8 +585,7 @@ static void __init kw_i2c_probe(void)
        struct device_node *np, *child, *parent;
 
        /* Probe keywest-i2c busses */
-       for (np = NULL;
-            (np = of_find_compatible_node(np, "i2c","keywest-i2c")) != NULL;){
+       for_each_compatible_node(np, "i2c","keywest-i2c") {
                struct pmac_i2c_host_kw *host;
                int multibus, chans, i;