summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core-of.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2018-01-18 13:11:30 +0100
committerWolfram Sang <wsa@the-dreams.de>2018-02-26 20:40:46 +0100
commite6db2d3278ac2fff9e0e33e9cc4274ae7f14d9f2 (patch)
tree1e779b4c19ccae23c647a180cc2e69bbd2d40bbb /drivers/i2c/i2c-core-of.c
parentf1c87ceb02912201dff70e58fd15761292951b09 (diff)
downloadlinux-e6db2d3278ac2fff9e0e33e9cc4274ae7f14d9f2.tar.bz2
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: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/i2c-core-of.c')
-rw-r--r--drivers/i2c/i2c-core-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c
index b652579ed04e..5e2d55b3daac 100644
--- a/drivers/i2c/i2c-core-of.c
+++ b/drivers/i2c/i2c-core-of.c
@@ -64,8 +64,8 @@ static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
}
info.addr = addr;
- info.of_node = of_node_get(node);
info.archdata = &dev_ad;
+ info.of_node = of_node_get(node);
if (of_property_read_bool(node, "host-notify"))
info.flags |= I2C_CLIENT_HOST_NOTIFY;