Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dc2e425857a95f2b5dcded188ec7e813ed92c30d Commit: dc2e425857a95f2b5dcded188ec7e813ed92c30d Parent: 3329c0d1b2de2eb9e156aa8c13ad639f54791f24 Author: Cyrill Gorcunov <[EMAIL PROTECTED]> AuthorDate: Fri Nov 30 06:46:54 2007 +1100 Committer: Paul Mackerras <[EMAIL PROTECTED]> CommitDate: Thu Jan 17 14:56:57 2008 +1100
[POWERPC] Use for_each macros in arch/powerpc/platforms/powermac Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- arch/powerpc/platforms/powermac/low_i2c.c | 3 +-- 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 da2007e..864fbf4 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html