Commit e6db2d32 authored by Wolfram Sang's avatar Wolfram Sang

i2c: of: make ref counting more visible

When debugging a ref counting problem, I overlooked this snipplet a few
times. Might be taste, but I think the new location is visually easier
recognizable.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent f1c87ceb
...@@ -64,8 +64,8 @@ static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap, ...@@ -64,8 +64,8 @@ static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
} }
info.addr = addr; info.addr = addr;
info.of_node = of_node_get(node);
info.archdata = &dev_ad; info.archdata = &dev_ad;
info.of_node = of_node_get(node);
if (of_property_read_bool(node, "host-notify")) if (of_property_read_bool(node, "host-notify"))
info.flags |= I2C_CLIENT_HOST_NOTIFY; info.flags |= I2C_CLIENT_HOST_NOTIFY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment