From: Sylwester Nawrocki Date: Fri, 1 Jul 2011 11:38:13 +0000 (-0300) Subject: [media] m5mols: Enable v4l subdev device node X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87eaec5dff4e20228fb6ac72dc849fd12f4e86be;p=mv-sheeva.git [media] m5mols: Enable v4l subdev device node Set V4L2_SUBDEV_FL_HAS_DEVNODE flag for the host driver to create the sensor device node. Acked-by: HeungJun Kim Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/m5mols/m5mols_core.c b/drivers/media/video/m5mols/m5mols_core.c index e8a971fa372..93d768db9f3 100644 --- a/drivers/media/video/m5mols/m5mols_core.c +++ b/drivers/media/video/m5mols/m5mols_core.c @@ -984,6 +984,7 @@ static int __devinit m5mols_probe(struct i2c_client *client, sd = &info->sd; strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); v4l2_i2c_subdev_init(sd, client, &m5mols_ops); + sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; sd->internal_ops = &m5mols_subdev_internal_ops; info->pad.flags = MEDIA_PAD_FL_SOURCE;