powerpc/83xx: use for_each_node_by_name for km83xx.c
authorHolger Brunck <holger.brunck@keymile.com>
Tue, 8 May 2012 13:57:19 +0000 (15:57 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 10 Jul 2012 12:07:20 +0000 (07:07 -0500)
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Heiko Schocher <hs@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/83xx/km83xx.c

index a266ba8768639b8f05196fe831968ad12f8e1c61..e827c6cc2feaec955dc4181b7f490220a842c1bb 100644 (file)
@@ -70,7 +70,7 @@ static void __init mpc83xx_km_setup_arch(void)
                for_each_node_by_name(np, "spi")
                        par_io_of_config(np);
 
-               for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;)
+               for_each_node_by_name(np, "ucc")
                        par_io_of_config(np);
        }