summaryrefslogtreecommitdiff
path: root/drivers/iio/counter/104-quad-8.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/counter/104-quad-8.c')
-rw-r--r--drivers/iio/counter/104-quad-8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/counter/104-quad-8.c b/drivers/iio/counter/104-quad-8.c
index f9b8fc9ae13f..ba3d9030cd51 100644
--- a/drivers/iio/counter/104-quad-8.c
+++ b/drivers/iio/counter/104-quad-8.c
@@ -551,6 +551,7 @@ static int quad8_probe(struct device *dev, unsigned int id)
indio_dev->num_channels = ARRAY_SIZE(quad8_channels);
indio_dev->channels = quad8_channels;
indio_dev->name = dev_name(dev);
+ indio_dev->dev.parent = dev;
priv = iio_priv(indio_dev);
priv->base = base[id];