[PATCH 1/2] i2c: only register enabled child nodes
Jan Luebbe
jluebbe at debian.org
Wed Jul 8 06:31:02 PDT 2015
Signed-off-by: Jan Luebbe <jluebbe at debian.org>
---
drivers/i2c/i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 7a6bde0..ebc7e23 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -278,7 +278,7 @@ static void of_i2c_register_devices(struct i2c_adapter *adap)
if (!IS_ENABLED(CONFIG_OFDEVICE) || !adap->dev.device_node)
return;
- for_each_child_of_node(adap->dev.device_node, n) {
+ for_each_available_child_of_node(adap->dev.device_node, n) {
struct i2c_board_info info = {};
struct i2c_client *result;
const __be32 *addr;
--
2.1.4
More information about the barebox
mailing list