summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
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