summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorKenneth Aafloy <devnull@localhost>2004-11-12 20:52:14 +0000
committerKenneth Aafloy <devnull@localhost>2004-11-12 20:52:14 +0000
commitff658eeca7c55c346e6f21c3d19c5002eaec9545 (patch)
tree235cce240832dd2b1908fa3f6fd112901b0c9650 /linux/drivers
parent4012406bd05187eacf6b29fe702848894c8f3d91 (diff)
downloadmediapointer-dvb-s2-ff658eeca7c55c346e6f21c3d19c5002eaec9545.tar.gz
mediapointer-dvb-s2-ff658eeca7c55c346e6f21c3d19c5002eaec9545.tar.bz2
- compatability code for remap_pfn_range/remap_page_range
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 96988e2e5..6b138db44 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -25,6 +25,7 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/version.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/pci.h>
@@ -35,6 +36,14 @@
#include "dvb_demux.h"
#include "dvb_net.h"
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
+static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long uvaddr,
+ unsigned long paddr, unsigned long size, pgprot_t prot)
+{
+ return remap_page_range(vma, uvaddr, paddr << PAGE_SHIFT, size, prot);
+}
+#endif
+
#ifdef CONFIG_DVB_CINERGYT2_TUNING
#define STREAM_URB_COUNT (CONFIG_DVB_CINERGYT2_STREAM_URB_COUNT)
#define STREAM_BUF_SIZE (CONFIG_DVB_CINERGYT2_STREAM_BUF_SIZE)