summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2016-09-13 19:16:32 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 15:34:37 -0200
commitdf77542ede76774cfbdc852d0e09b6f800941be1 (patch)
treefff28d0352a06ad374ad9f8475289aef2df5e3fd /drivers/media/i2c
parent88b3e311b52679a5c81af6bb0495d2c45049bb07 (diff)
[media] smiapp: Set device for pixel array and binner
The dev field of the v4l2_subdev was left NULL for the pixel array and binner sub-devices. Fix this. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/smiapp/smiapp-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 1891c28ca6a4..3ea4f12ecee2 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -2610,6 +2610,7 @@ static void smiapp_create_subdev(struct smiapp_sensor *sensor,
ssd->sd.internal_ops = &smiapp_internal_ops;
ssd->sd.owner = THIS_MODULE;
+ ssd->sd.dev = &client->dev;
v4l2_set_subdevdata(&ssd->sd, client);
}