Skip to contentSkip to conversation

sh_veu: v4l2_dev wasn't set

PATCH New Hans Verkuil 1 participant 1 message Dec 10, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh_veu: v4l2_dev wasn't set

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.

---
 drivers/media/platform/sh_veu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/platform/sh_veu.c +1 -0
index be3b3bc..54cb88a 100644
@@ -1179,6 +1179,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;
Signature · 1 line
2.1.3