V4L/DVB (11756): soc_camera: depends on I2C
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 11 May 2009 17:51:32 +0000 (14:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:01 +0000 (18:21 -0300)
soc_camera uses i2c_*() functions and has build errors when CONFIG_I2C=n:

ERROR: "i2c_new_device" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_get_adapter" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_put_adapter" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_unregister_device" [drivers/media/video/soc_camera.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/Kconfig

index af576eaeab7a98ef70bd94bb50077737499412b5..94f440535c648896e9e84264ca94b9594542a243 100644 (file)
@@ -712,7 +712,7 @@ config VIDEO_CAFE_CCIC
 
 config SOC_CAMERA
        tristate "SoC camera support"
-       depends on VIDEO_V4L2 && HAS_DMA
+       depends on VIDEO_V4L2 && HAS_DMA && I2C
        select VIDEOBUF_GEN
        help
          SoC Camera is a common API to several cameras, not connecting