summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/lp8788_adc.c
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2013-01-03 10:28:00 +0400
committerJonathan Cameron <jic23@kernel.org>2013-01-06 15:35:31 +0400
commit5306f416ad9e7d6134fc1e357e895e69823975d8 (patch)
tree326bc95e9aa8447a6aaffa687fa873762b1d8843 /drivers/iio/adc/lp8788_adc.c
parentdc11699908b270940b1245986236864decb6f8cc (diff)
downloadlinux-5306f416ad9e7d6134fc1e357e895e69823975d8.tar.xz
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/adc/lp8788_adc.c')
-rw-r--r--drivers/iio/adc/lp8788_adc.c2
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,
ret = iio_map_array_register(indio_dev, map);
if (ret) {
- dev_err(adc->lp->dev, "iio map err: %d\n", ret);
+ dev_err(&indio_dev->dev, "iio map err: %d\n", ret);
return ret;
}