[media] omap3isp: Fix crash caused by subdevs now having a pointer to devnodes
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 16 Nov 2011 13:54:02 +0000 (10:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 9 Feb 2012 09:20:25 +0000 (07:20 -0200)
Commit 3e0ec41c5c5ee14e27f65e28d4a616de34f59a97 ("V4L: dynamically
allocate video_device nodes in subdevices") makes the
embedding video_device directly.

Fix accesses to the devnode accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispccdc.c

index 3663834ca94cec98e31304f7a1f44b82c83cecef..ec62d11d678b02558aae2ea11d1a52cb51a86884 100644 (file)
@@ -1407,7 +1407,7 @@ static int __ccdc_handle_stopping(struct isp_ccdc_device *ccdc, u32 event)
 static void ccdc_hs_vs_isr(struct isp_ccdc_device *ccdc)
 {
        struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity);
-       struct video_device *vdev = &ccdc->subdev.devnode;
+       struct video_device *vdev = ccdc->subdev.devnode;
        struct v4l2_event event;
 
        memset(&event, 0, sizeof(event));