9
0
Fork 0

i2c: only register enabled child nodes

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-06-11 19:45:35 +02:00
parent db890a38ca
commit d4defe9190
1 changed files with 1 additions and 1 deletions

View File

@ -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;