Hi Mauro, On 08/15/2012 03:48 PM, Mauro Carvalho Chehab wrote: > Move ancillary I2C drivers into drivers/media/i2c, in order to > better organize them. > > Signed-off-by: Mauro Carvalho Chehab > --- > drivers/media/Kconfig | 9 +- > drivers/media/Makefile | 2 +- > drivers/media/i2c/Kconfig | 566 ++++++++++++++++++++ > drivers/media/i2c/Makefile | 63 +++ > drivers/media/{video => i2c}/adp1653.c | 2 +- ... > rename drivers/media/{video => i2c}/wm8775.c (100%) > > diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig > index c9cdc61..26f3de5 100644 > --- a/drivers/media/Kconfig > +++ b/drivers/media/Kconfig > @@ -151,18 +151,15 @@ source "drivers/media/rc/Kconfig" > > source "drivers/media/tuners/Kconfig" > > +source "drivers/media/i2c/Kconfig" > + > # > -# Video/Radio/Hybrid adapters > +# V4L platform/mem2mem drivers > # > - > source "drivers/media/video/Kconfig" > > source "drivers/media/radio/Kconfig" > > -# > -# DVB adapters > -# > - > source "drivers/media/pci/Kconfig" > source "drivers/media/usb/Kconfig" > source "drivers/media/mmc/Kconfig" > diff --git a/drivers/media/Makefile b/drivers/media/Makefile > index 360c44d..e1be196 100644 > --- a/drivers/media/Makefile > +++ b/drivers/media/Makefile > @@ -9,7 +9,7 @@ ifeq ($(CONFIG_MEDIA_CONTROLLER),y) > endif > > obj-y += tuners/ common/ rc/ video/ > -obj-y += pci/ usb/ mmc/ firewire/ parport/ > +obj-y += i2c/ pci/ usb/ mmc/ firewire/ parport/ That way all i2c drivers won't be linked before bridge drivers, which causes failure of sensor subdev registration. There was a comment about it in the original Makefile, please see further below. This issue have already shown up for me in a real system, [ 1.075000] s3c_camif_driver_init:633 [ 1.080000] s3c-camif s3c2440-camif: sensor clock frequency: 12000000 [ 1.090000] s3c-camif: failed to acquire subdev OV9650 [ 1.095000] platform s3c2440-camif: Driver s3c-camif requests probe deferral [ 1.100000] ov965x_i2c_driver_init:820 I've attached a patch to fix this issue. > obj-$(CONFIG_VIDEO_DEV) += radio/ v4l2-core/ > obj-$(CONFIG_DVB_CORE) += dvb-core/ dvb-frontends/ [snip] > diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile > index a0c6692..52a04fa 100644 > --- a/drivers/media/video/Makefile > +++ b/drivers/media/video/Makefile > @@ -2,73 +2,9 @@ > # Makefile for the video capture/playback device drivers. > # > > -msp3400-objs := msp3400-driver.o msp3400-kthreads.o > - > omap2cam-objs := omap24xxcam.o omap24xxcam-dma.o > > -# Helper modules > - > -obj-$(CONFIG_VIDEO_APTINA_PLL) += aptina-pll.o > - > -# All i2c modules must come first: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | This is currently not preserved ----+ > -obj-$(CONFIG_VIDEO_TVAUDIO) += tvaudio.o > -obj-$(CONFIG_VIDEO_TDA7432) += tda7432.o > -obj-$(CONFIG_VIDEO_SAA6588) += saa6588.o -- Regards, Sylwester