public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [omap3camera] Camera bring-up on Zoom3 (OMAP3630)
@ 2010-03-05 14:54 Aguirre, Sergio
  2010-03-16 22:30 ` Laurent Pinchart
  0 siblings, 1 reply; 10+ messages in thread
From: Aguirre, Sergio @ 2010-03-05 14:54 UTC (permalink / raw)
  To: laurent.pinchart@ideasonboard.com, Sakari Ailus
  Cc: linux-media@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

Hi Laurent, Sakari,

I'm trying to get latest Sakari's tree (gitorious.org/omap3camera)
'devel' branch running on my Zoom3 HW (which has an OMAP3630, and a
Sony IMX046 8MP sensor).

I had first one NULL pointer dereference while the driver was
registering devices and creating entities, which I resolved with
the attached patch. (Is this patch acceptable, or maybe I am missing
something...)

And now, I don't get quite clear on how the created nodes work out.

Now I have /dev/video[0-5], but I don't know how I'm I supposed to handle
them...

Here's my current work-in-progress kernel:

	http://dev.omapzoom.org/?p=saaguirre/linux-omap-camera.git;a=shortlog;h=refs/heads/omap-devel-wip

Can you please give some guidance on it?

Regards,
Sergio

[-- Attachment #2: 0001-omap34xxcam-Add-check-for-null-subdev-platform-data.patch --]
[-- Type: application/octet-stream, Size: 1252 bytes --]

From 0eaf3e91919ddaf2306ff63aaff895547865e111 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 5 Mar 2010 08:44:57 -0600
Subject: [PATCH] omap34xxcam: Add check for null subdev platform data

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/media/video/omap34xxcam.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/omap34xxcam.c b/drivers/media/video/omap34xxcam.c
index 9d9f0d3..16683cc 100644
--- a/drivers/media/video/omap34xxcam.c
+++ b/drivers/media/video/omap34xxcam.c
@@ -1365,6 +1365,9 @@ static int omap34xxcam_probe(struct platform_device *pdev)
 
 	for (i = 0; i < OMAP34XXCAM_VIDEODEVS; i++) {
 		struct omap34xxcam_videodev *vdev = &cam->vdevs[i];
+		
+		if (pdata->subdevs[i] == NULL)
+			continue;
 
 		mutex_init(&vdev->mutex);
 		vdev->index = i;
@@ -1397,6 +1400,9 @@ static int omap34xxcam_probe(struct platform_device *pdev)
 	for (i = 0; i < OMAP34XXCAM_VIDEODEVS; i++) {
 		struct omap34xxcam_videodev *vdev = &cam->vdevs[i];
 
+		if (pdata->subdevs[i] == NULL)
+			continue;
+
 		ret = isp_video_register(&vdev->video, &vdev->cam->v4l2_dev);
 		if (ret < 0) {
 			printk(KERN_ERR "%s: could not register video device (%d)\n",
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-03-17 20:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-05 14:54 [omap3camera] Camera bring-up on Zoom3 (OMAP3630) Aguirre, Sergio
2010-03-16 22:30 ` Laurent Pinchart
2010-03-17 13:52   ` Aguirre, Sergio
2010-03-17 14:14     ` Laurent Pinchart
2010-03-17 14:16       ` Sakari Ailus
2010-03-17 14:23         ` Laurent Pinchart
2010-03-17 14:23         ` Aguirre, Sergio
2010-03-17 14:58           ` Sakari Ailus
2010-03-17 15:04             ` Aguirre, Sergio
2010-03-17 20:23               ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox