summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9p031.c
diff options
context:
space:
mode:
authorPaul Gortmaker2011-09-30 22:34:51 +0200
committerMauro Carvalho Chehab2011-10-08 13:01:46 +0200
commit86caf8113800cf4e4eedbeac222f3daa0fb146b5 (patch)
tree67e27aef63fd46eb4c7a914c09a99b7f05e821c0 /drivers/media/video/mt9p031.c
parent[media] em28xx: Add VIDIOC_QUERYSTD support (diff)
downloadkernel-qcow2-linux-86caf8113800cf4e4eedbeac222f3daa0fb146b5.tar.gz
kernel-qcow2-linux-86caf8113800cf4e4eedbeac222f3daa0fb146b5.tar.xz
kernel-qcow2-linux-86caf8113800cf4e4eedbeac222f3daa0fb146b5.zip
[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/mt9p031.c')
-rw-r--r--drivers/media/video/mt9p031.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c
index 5cfa39f4bf14..73c068993f05 100644
--- a/drivers/media/video/mt9p031.c
+++ b/drivers/media/video/mt9p031.c
@@ -14,6 +14,7 @@
#include <linux/delay.h>
#include <linux/device.h>
+#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/log2.h>
#include <linux/pm.h>