mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
[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>
This commit is contained in:
parent
3329c0d1b2
commit
dc2e425857
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue