summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c4
-rw-r--r--linux/drivers/media/video/videodev.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 85d6a6c65..9b824c31b 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -93,7 +93,11 @@ static int dvb_device_open(struct inode *inode, struct file *file)
if (dvbdev && dvbdev->fops) {
int err = 0;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
const struct file_operations *old_fops;
+#else
+ struct file_operations *old_fops;
+#endif
file->private_data = dvbdev;
old_fops = file->f_op;
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index e54b8d9f7..c6d0825c8 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -111,7 +111,11 @@ static int video_open(struct inode *inode, struct file *file)
unsigned int minor = iminor(inode);
int err = 0;
struct video_device *vfl;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
const struct file_operations *old_fops;
+#else
+ struct file_operations *old_fops;
+#endif
if(minor>=VIDEO_NUM_DEVICES)
return -ENODEV;