Skip to content

Commit

Permalink
media: ov772x: create subdevice device node
Browse files Browse the repository at this point in the history
Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so that the
subdevice device node is created.

Cc: Laurent Pinchart <[email protected]>
Cc: Hans Verkuil <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mita authored and mchehab committed Jun 28, 2018
1 parent 7b9998c commit 795bce4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/i2c/ov772x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,7 @@ static int ov772x_probe(struct i2c_client *client,
mutex_init(&priv->lock);

v4l2_i2c_subdev_init(&priv->subdev, client, &ov772x_subdev_ops);
priv->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
v4l2_ctrl_handler_init(&priv->hdl, 3);
/* Use our mutex for the controls */
priv->hdl.lock = &priv->lock;
Expand Down

0 comments on commit 795bce4

Please sign in to comment.