From 8dfe61a7f3c717807a8c0e94561551c0869c82b7 Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Sat, 3 May 2003 10:00:59 +0000 Subject: Update dec driver to work with 2.5 kernels --- linux/drivers/media/dvb/dvb-core/dvb_compat.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'linux/drivers/media/dvb/dvb-core') 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 + +#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 -- cgit v1.2.3