From df77542ede76774cfbdc852d0e09b6f800941be1 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Tue, 13 Sep 2016 19:16:32 -0300 Subject: [PATCH] [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 Reviewed-by: Sebastian Reichel Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/smiapp/smiapp-core.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.20.1