of_i2c: Honour "status=disabled" property of device
[deliverable/linux.git] / drivers / of / of_i2c.c
index 3550f3bf4f92738cc992eee88b25a19829f9dcb5..b667264222cc36341ee1b8db1fe273f7f5dff6c2 100644 (file)
@@ -29,7 +29,7 @@ void of_i2c_register_devices(struct i2c_adapter *adap)
 
        dev_dbg(&adap->dev, "of_i2c: walking child nodes\n");
 
-       for_each_child_of_node(adap->dev.of_node, node) {
+       for_each_available_child_of_node(adap->dev.of_node, node) {
                struct i2c_board_info info = {};
                struct dev_archdata dev_ad = {};
                const __be32 *addr;
This page took 0.023955 seconds and 5 git commands to generate.