]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] smiapp: Set device for pixel array and binner
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 13 Sep 2016 22:16:32 +0000 (19:16 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 17:34:37 +0000 (15:34 -0200)
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>
drivers/media/i2c/smiapp/smiapp-core.c

index 1891c28ca6a461f676b57815a45d23f06b126fcf..3ea4f12ecee210c51b9ce9bf7e3cd158eedda5a2 100644 (file)
@@ -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);
 }