iio/adc: (lp8788) Provide OF node information to iio device

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Guenter Roeck 2013-01-31 21:43:00 +00:00 committed by Jonathan Cameron
parent a11e619b80
commit c3a69e6c11
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ static int lp8788_adc_probe(struct platform_device *pdev)
adc->lp = lp;
platform_set_drvdata(pdev, indio_dev);
indio_dev->dev.of_node = pdev->dev.of_node;
ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc);
if (ret)
goto err_iio_map;