]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[media] sh_veu: v4l2_dev wasn't set
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 10 Dec 2014 15:35:34 +0000 (12:35 -0300)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 27 Apr 2015 15:16:33 +0000 (16:16 +0100)
commit ab3120300be067a2d41a027c41db0b2c662ab200 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: Luis Henriques <luis.henriques@canonical.com>
drivers/media/platform/sh_veu.c

index 744e43b480bcc217f3da9522cc992061fa7f691a..f698e322a1cd62b64f0573a1e706fb8254ccbd53 100644 (file)
@@ -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;