aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/of_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/of_i2c.c')
-rw-r--r--drivers/of/of_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c
index a3a708e590d..ab6522c8e4f 100644
--- a/drivers/of/of_i2c.c
+++ b/drivers/of/of_i2c.c
@@ -42,7 +42,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap,
42 42
43 info.addr = be32_to_cpup(addr); 43 info.addr = be32_to_cpup(addr);
44 44
45 dev_archdata_set_node(&dev_ad, node); 45 info.of_node = node;
46 info.archdata = &dev_ad; 46 info.archdata = &dev_ad;
47 47
48 request_module("%s", info.type); 48 request_module("%s", info.type);
@@ -68,7 +68,7 @@ EXPORT_SYMBOL(of_register_i2c_devices);
68 68
69static int of_dev_node_match(struct device *dev, void *data) 69static int of_dev_node_match(struct device *dev, void *data)
70{ 70{
71 return dev_archdata_get_node(&dev->archdata) == data; 71 return dev->of_node == data;
72} 72}
73 73
74/* must call put_device() when done with returned i2c_client device */ 74/* must call put_device() when done with returned i2c_client device */