aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-31 16:43:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-02-02 04:55:21 -0500
commit315ce4b882ad616139a811f5274c16556c5abdf3 (patch)
treeb560766e51ed3afc691f0e97e861dd4990fb62a6 /drivers/iio
parentc3a69e6c11d0c341c5c610be219bfcb56bbfcfb1 (diff)
iio/adc: (max1363) Provide OF node information to iio device
Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/max1363.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index eba1034d8606..65eceed7070c 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1538,6 +1538,7 @@ static int max1363_probe(struct i2c_client *client,
1538 goto error_out; 1538 goto error_out;
1539 } 1539 }
1540 1540
1541 indio_dev->dev.of_node = client->dev.of_node;
1541 ret = iio_map_array_register(indio_dev, client->dev.platform_data); 1542 ret = iio_map_array_register(indio_dev, client->dev.platform_data);
1542 if (ret < 0) 1543 if (ret < 0)
1543 goto error_free_device; 1544 goto error_free_device;