[media] m5mols: Enable v4l subdev device node
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 1 Jul 2011 11:38:13 +0000 (08:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 16:39:34 +0000 (14:39 -0200)
Set V4L2_SUBDEV_FL_HAS_DEVNODE flag for the host driver to create
the sensor device node.

Acked-by: HeungJun Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/m5mols/m5mols_core.c

index e8a971fa372658a1bdb425f456b39eb0d61de941..93d768db9f3328b152bf8f1a98329fc475c11d2d 100644 (file)
@@ -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;