浏览代码

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>
Wolfram Sang 7 年之前
父节点
当前提交
e6db2d3278
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/i2c-core-of.c

+ 1 - 1
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;