diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2013-01-03 01:28:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-01-06 06:35:31 -0500 |
commit | 5306f416ad9e7d6134fc1e357e895e69823975d8 (patch) | |
tree | 326bc95e9aa8447a6aaffa687fa873762b1d8843 /drivers/iio | |
parent | dc11699908b270940b1245986236864decb6f8cc (diff) |
iio: lp8788_adc: fix parent device in kernel message
Use 'dev' of iio device in a kernel message rather than i2c client device node.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/lp8788_adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c index 9b9c26dca753..f8ae81cae9cf 100644 --- a/drivers/iio/adc/lp8788_adc.c +++ b/drivers/iio/adc/lp8788_adc.c | |||
@@ -179,7 +179,7 @@ static int lp8788_iio_map_register(struct iio_dev *indio_dev, | |||
179 | 179 | ||
180 | ret = iio_map_array_register(indio_dev, map); | 180 | ret = iio_map_array_register(indio_dev, map); |
181 | if (ret) { | 181 | if (ret) { |
182 | dev_err(adc->lp->dev, "iio map err: %d\n", ret); | 182 | dev_err(&indio_dev->dev, "iio map err: %d\n", ret); |
183 | return ret; | 183 | return ret; |
184 | } | 184 | } |
185 | 185 | ||