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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df77542ede76774cfbdc852d0e09b6f800941be1;p=linux-beck.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 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); }