summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-30 23:17:24 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-30 23:17:24 -0300
commitc7420d03a48097dd8f80e893ed945a4952d8320d (patch)
tree0c3351376a82f58d9f5796039c1d3655023ae12f /linux
parent2aab8237faf0bac5c8f6b3ab69b73b78c0488244 (diff)
downloadmediapointer-dvb-s2-c7420d03a48097dd8f80e893ed945a4952d8320d.tar.gz
mediapointer-dvb-s2-c7420d03a48097dd8f80e893ed945a4952d8320d.tar.bz2
Fix compilation, when V4L1_COMPAT is disabled
From: Mauro Carvalho Chehab <mchehab@infradead.org> This driver uses some sysfs helper functions that are available only for legacy drivers. It also requires linux/mm.h. This patch fixes compiliation when not in compat mode. Thanks to Ingo Molnar for identifying this issue. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/stk-webcam.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/stk-webcam.c b/linux/drivers/media/video/stk-webcam.c
index 7d8843c8e..f7f04aea7 100644
--- a/linux/drivers/media/video/stk-webcam.c
+++ b/linux/drivers/media/video/stk-webcam.c
@@ -30,6 +30,7 @@
#include <linux/kref.h>
#include <linux/usb.h>
+#include <linux/mm.h>
#include <linux/vmalloc.h>
#include "compat.h"
#include <linux/videodev2.h>
@@ -246,6 +247,8 @@ static int stk_initialise(struct stk_camera *dev)
return -1;
}
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
+
/* sysfs functions */
/*FIXME cleanup this */
@@ -351,6 +354,10 @@ static void stk_remove_sysfs_files(struct video_device *vdev)
video_device_remove_file(vdev, &dev_attr_vflip);
}
+#else
+#define stk_create_sysfs_files(a)
+#define stk_remove_sysfs_files(a)
+#endif
/* *********************************************** */
/*