]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: of: make ref counting more visible
authorWolfram Sang <wsa@the-dreams.de>
Thu, 18 Jan 2018 12:11:30 +0000 (13:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Feb 2018 19:40:46 +0000 (20:40 +0100)
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>
drivers/i2c/i2c-core-of.c

index b652579ed04e66a266de92a549e5ff6b92eb2ba5..5e2d55b3daacca45252e09726108c4d52ee077f0 100644 (file)
@@ -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;