summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/iio/light/apds9960.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/iio/light/apds9960.c')
-rw-r--r--kernel/drivers/iio/light/apds9960.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/drivers/iio/light/apds9960.c b/kernel/drivers/iio/light/apds9960.c
index f6a07dc32..4a6d9670e 100644
--- a/kernel/drivers/iio/light/apds9960.c
+++ b/kernel/drivers/iio/light/apds9960.c
@@ -1005,6 +1005,7 @@ static int apds9960_probe(struct i2c_client *client,
iio_device_attach_buffer(indio_dev, buffer);
+ indio_dev->dev.parent = &client->dev;
indio_dev->info = &apds9960_info;
indio_dev->name = APDS9960_DRV_NAME;
indio_dev->channels = apds9960_channels;