From dc2e425857a95f2b5dcded188ec7e813ed92c30d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 30 Nov 2007 06:46:54 +1100 Subject: [PATCH] [POWERPC] Use for_each macros in arch/powerpc/platforms/powermac Signed-off-by: Cyrill Gorcunov Signed-off-by: Paul Mackerras --- arch/powerpc/platforms/powermac/low_i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index da2007e3db..864fbf4744 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) 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; -- 2.39.5