Skip to content

Commit

Permalink
iio/adc: (max1363) Provide OF node information to iio device
Browse files Browse the repository at this point in the history
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Guenter Roeck authored and Jonathan Cameron committed Feb 2, 2013
1 parent c3a69e6 commit 315ce4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/max1363.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ static int max1363_probe(struct i2c_client *client,
goto error_out;
}

indio_dev->dev.of_node = client->dev.of_node;
ret = iio_map_array_register(indio_dev, client->dev.platform_data);
if (ret < 0)
goto error_free_device;
Expand Down

0 comments on commit 315ce4b

Please sign in to comment.