[media] s5k6a3: Add missing entity function initialization
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 1 Sep 2016 11:47:06 +0000 (08:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 13:15:16 +0000 (10:15 -0300)
Suppresses warning like:
s5p-fimc-md camera: Entity type for entity S5K6A3 13-0010 was not initialized!

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/s5k6a3.c

index b1ecb44f9f1481ce1c29508ff6615fe881193c79..769964057881cd1090c47fee5ac33e8b0fc5e818 100644 (file)
@@ -331,6 +331,7 @@ static int s5k6a3_probe(struct i2c_client *client,
        sensor->format.width = S5K6A3_DEFAULT_WIDTH;
        sensor->format.height = S5K6A3_DEFAULT_HEIGHT;
 
+       sd->entity.function = MEDIA_ENT_F_CAM_SENSOR;
        sensor->pad.flags = MEDIA_PAD_FL_SOURCE;
        ret = media_entity_pads_init(&sd->entity, 1, &sensor->pad);
        if (ret < 0)