Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / drivers / iio / light / apds9960.c
index f6a07dc..4a6d967 100644 (file)
@@ -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;