Return-path: Received: from mail-qy0-f181.google.com ([209.85.216.181]:35647 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755843Ab1KHONW (ORCPT ); Tue, 8 Nov 2011 09:13:22 -0500 Received: by qyk2 with SMTP id 2so556073qyk.19 for ; Tue, 08 Nov 2011 06:13:21 -0800 (PST) From: Rick Bronson To: laurent.pinchart@ideasonboard.com CC: linux-media@vger.kernel.org Subject: Re: [RFC/PATCH 1/2] v4l: Add generic board subdev registration function Message-Id: Date: Tue, 08 Nov 2011 06:13:17 -0800 Sender: linux-media-owner@vger.kernel.org List-ID: Hi All, I'm trying to add a SPI camera to 2.6.39 but ran into trouble with isp_register_subdev_group() in drivers/media/video/omap3isp/isp.c hardcoded to use i2c. The platform is a BeagleBoardXM. I tried these two patches: http://patchwork.linuxtv.org/patch/6651/mbox/ http://patchwork.linuxtv.org/patch/6650/raw/ or: RFC-PATCH-2-2-omap3isp-Use-generic-subdev-registration-function.patch RFC-PATCH-1-2-v4l-Add-generic-board-subdev-registration-function.patch It crashes, from what I can tell, it seems to be coming into isp_register_entities(), then iterating in: --------------------------------- /* Register external entities */ for (subdevs = pdata->subdevs; subdevs->subdevs; ++subdevs) { --------------------------------- But it's iterating through ev76c560_camera_subdevs (see http://efn.org/~rick/pub/board-portal7-camera.c), seems like it should be iterating through portal7_camera_subdevs in the same file. Any help would be greatly appreciated. Thanks, Rick Bronson