summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-06 19:26:02 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-06 19:26:02 +0100
commit6eaf346bd10a29047d3a0012f73d377e9ff2df67 (patch)
tree765b93d6e0ec9d14039a0afba80f0ed49c988f8d
parent9287d394a995ecc037b79e502fd8a995c4929f56 (diff)
downloadmediapointer-dvb-s2-6eaf346bd10a29047d3a0012f73d377e9ff2df67.tar.gz
mediapointer-dvb-s2-6eaf346bd10a29047d3a0012f73d377e9ff2df67.tar.bz2
dvb: fix 2.6.16 compile warning
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 4609e3ebd..f6084e19d 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -83,7 +83,11 @@ static int dvb_device_open(struct inode *inode, struct file *file)
file->private_data = dvbdev;
old_fops = file->f_op;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 17)
file->f_op = fops_get(dvbdev->fops);
+#else
+ file->f_op = (struct file_operations *)fops_get(dvbdev->fops);
+#endif
if (file->f_op == NULL) {
file->f_op = old_fops;
goto fail;