summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-08 11:52:11 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-08 11:52:11 -0300
commitcc64aacbe823925c5cd8593e2f0e0fe7ba896053 (patch)
treeb43afa1bb3bf6163c9250853984827db101f9978 /linux/include
parentc9afdbe77a95a51cc16765495700227b3870e4cf (diff)
downloadmediapointer-dvb-s2-cc64aacbe823925c5cd8593e2f0e0fe7ba896053.tar.gz
mediapointer-dvb-s2-cc64aacbe823925c5cd8593e2f0e0fe7ba896053.tar.bz2
Fix compilation with kernel 2.6.17
From: Andrew Ruder <andy@aeruder.net> This bug were introduced by the changes at videodev2.h Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/v4l2-dev.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index f43216d68..18f1bd706 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -47,10 +47,6 @@
#define VFL_TYPE_RADIO 2
#define VFL_TYPE_VTX 3
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
- const struct file_operations *fops;
-#endif
-
/* Video standard functions */
extern unsigned int v4l2_video_std_fps(struct v4l2_standard *vs);
extern int v4l2_video_std_construct(struct v4l2_standard *vs,
@@ -101,7 +97,11 @@ struct v4l2_tvnorm {
struct video_device
{
/* device ops */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
+ const struct file_operations *fops;
+#else
struct file_operations *fops;
+#endif
/* device info */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)