Skip to content

Commit

Permalink
sh_veu: v4l2_dev wasn't set
Browse files Browse the repository at this point in the history
commit ab31203 upstream.

The v4l2_dev field of struct video_device must be set correctly.
This was never done for this driver, so no video nodes were created
anymore.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Hans Verkuil authored and Greg Kroah-Hartman committed Apr 19, 2015
1 parent 07d3fa2 commit 60b9edf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/platform/sh_veu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,7 @@ static int sh_veu_probe(struct platform_device *pdev)
}

*vdev = sh_veu_videodev;
vdev->v4l2_dev = &veu->v4l2_dev;
spin_lock_init(&veu->lock);
mutex_init(&veu->fop_lock);
vdev->lock = &veu->fop_lock;
Expand Down

0 comments on commit 60b9edf

Please sign in to comment.