|
@@ -585,8 +585,7 @@ static void __init kw_i2c_probe(void)
|
|
struct device_node *np, *child, *parent;
|
|
struct device_node *np, *child, *parent;
|
|
|
|
|
|
/* Probe keywest-i2c busses */
|
|
/* 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;
|
|
struct pmac_i2c_host_kw *host;
|
|
int multibus, chans, i;
|
|
int multibus, chans, i;
|
|
|
|
|