summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorAlex Woods <devnull@localhost>2003-05-03 10:00:59 +0000
committerAlex Woods <devnull@localhost>2003-05-03 10:00:59 +0000
commit8dfe61a7f3c717807a8c0e94561551c0869c82b7 (patch)
tree3a6e36443ead1adb429486dc8c506d63fd001498 /linux/drivers/media/dvb/dvb-core
parent60e709a3b6abfe1a17879d64fbb5c2810a7d9ab1 (diff)
downloadmediapointer-dvb-s2-8dfe61a7f3c717807a8c0e94561551c0869c82b7.tar.gz
mediapointer-dvb-s2-8dfe61a7f3c717807a8c0e94561551c0869c82b7.tar.bz2
Update dec driver to work with 2.5 kernels
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_compat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_compat.h b/linux/drivers/media/dvb/dvb-core/dvb_compat.h
index a777e7bdb..87cbc5e86 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_compat.h
+++ b/linux/drivers/media/dvb/dvb-core/dvb_compat.h
@@ -122,6 +122,21 @@ extern struct page * vmalloc_to_page(void *addr);
#define devfs_mk_dir(parent,name,info) devfs_mk_dir(name)
#endif
+/* USB compatibility */
+
+#include <linux/usb.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+
+typedef struct iso_packet_descriptor usb_iso_packet_descriptor;
+#define URB_ISO_ASAP USB_ISO_ASAP
+#define URB_MEM_FLAG
+
+#else
+
+#define URB_MEM_FLAG , GFP_KERNEL
+
+#endif
#endif