From: Sakari Ailus Date: Tue, 13 Sep 2016 22:16:32 +0000 (-0300) Subject: [media] smiapp: Set device for pixel array and binner X-Git-Tag: v5.15~10718^2~1352 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df77542ede76774cfbdc852d0e09b6f800941be1;p=platform%2Fkernel%2Flinux-starfive.git [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 --- diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 1891c28..3ea4f12 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); }