aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/Kconfig
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-09-30 16:34:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-08 07:01:46 -0400
commit86caf8113800cf4e4eedbeac222f3daa0fb146b5 (patch)
tree67e27aef63fd46eb4c7a914c09a99b7f05e821c0 /drivers/media/video/Kconfig
parentd56ae6fbf33ddeb7ab2ffac896229ca473a7457f (diff)
[media] drivers/media: fix dependencies in video mt9t001/mt9p031
Both mt9t001.c and mt9p031.c have two identical issues, those being that they will need module.h inclusion for the upcoming cleanup going on there, and that their dependencies don't limit selection of configs that will fail to compile as follows: The related config options are CONFIG_MEDIA_CONTROLLER and CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears that the driver was never intended to work without these enabled, so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in turn already has a dependency on CONFIG_MEDIA_CONTROLLER. Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/Kconfig')
-rw-r--r--drivers/media/video/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
index aed5b3d740ca..b80bea26af62 100644
--- a/drivers/media/video/Kconfig
+++ b/drivers/media/video/Kconfig
@@ -469,14 +469,14 @@ config VIDEO_OV7670
469 469
470config VIDEO_MT9P031 470config VIDEO_MT9P031
471 tristate "Aptina MT9P031 support" 471 tristate "Aptina MT9P031 support"
472 depends on I2C && VIDEO_V4L2 472 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
473 ---help--- 473 ---help---
474 This is a Video4Linux2 sensor-level driver for the Aptina 474 This is a Video4Linux2 sensor-level driver for the Aptina
475 (Micron) mt9p031 5 Mpixel camera. 475 (Micron) mt9p031 5 Mpixel camera.
476 476
477config VIDEO_MT9T001 477config VIDEO_MT9T001
478 tristate "Aptina MT9T001 support" 478 tristate "Aptina MT9T001 support"
479 depends on I2C && VIDEO_V4L2 479 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
480 ---help--- 480 ---help---
481 This is a Video4Linux2 sensor-level driver for the Aptina 481 This is a Video4Linux2 sensor-level driver for the Aptina
482 (Micron) mt0t001 3 Mpixel camera. 482 (Micron) mt0t001 3 Mpixel camera.