summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/stx104.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/stx104.c')
-rw-r--r--drivers/iio/adc/stx104.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/stx104.c b/drivers/iio/adc/stx104.c
index be2de48844bc..2df84fa5e3fc 100644
--- a/drivers/iio/adc/stx104.c
+++ b/drivers/iio/adc/stx104.c
@@ -318,6 +318,7 @@ static int stx104_probe(struct device *dev, unsigned int id)
}
indio_dev->name = dev_name(dev);
+ indio_dev->dev.parent = dev;
priv = iio_priv(indio_dev);
priv->base = base[id];