Skip to contentSkip to conversation

v4l: Add generic board subdev registration function

PATCH Rick Bronson 1 participant 1 message Nov 8, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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