diff options
author | Holger Waechtler <devnull@localhost> | 2002-11-08 22:01:36 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-11-08 22:01:36 +0000 |
commit | 95d9da80ef7df209ccee580f32046aebb1eadf78 (patch) | |
tree | fcfe87dbe646a19d0f5444dd6ba70276bc64e565 /linux/drivers | |
parent | e8f530f6dc43b766d5eb2b59d39e5056e63d7f51 (diff) | |
download | mediapointer-dvb-s2-95d9da80ef7df209ccee580f32046aebb1eadf78.tar.gz mediapointer-dvb-s2-95d9da80ef7df209ccee580f32046aebb1eadf78.tar.bz2 |
enable 2.4 compatibility stuff for all kernels before 2.5.0
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/av7110/av7110.c | 8 | ||||
-rw-r--r-- | linux/drivers/media/dvb/av7110/av7110_ir.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/compat.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/compat.h | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/linux/drivers/media/dvb/av7110/av7110.c b/linux/drivers/media/dvb/av7110/av7110.c index 36ae3d090..caadca7d0 100644 --- a/linux/drivers/media/dvb/av7110/av7110.c +++ b/linux/drivers/media/dvb/av7110/av7110.c @@ -3119,7 +3119,7 @@ int av7110_video_ioctl (struct av7110_s *av7110, unsigned int cmd, void *arg) } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) static int dvb_ioctl(struct video_device *dev, unsigned int cmd, void *arg) @@ -3150,7 +3150,7 @@ int dvb_ioctl (struct inode *inode, struct file *file, #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) static int dvb_mmap(struct video_device *dev, const char *adr, unsigned long size) { @@ -3209,7 +3209,7 @@ unsigned int dvb_audio_poll(struct file *file, poll_table *wait) } -#if !(LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) +#if !(LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) static struct file_operations dvb_fops = { .ioctl = dvb_ioctl, .mmap = dvb_mmap, @@ -3229,7 +3229,7 @@ static struct video_device dvb_template = { VID_TYPE_FRAMERAM | VID_TYPE_SCALES, .hardware = VID_HARDWARE_SAA7146, -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) .ioctl = dvb_ioctl, .mmap = dvb_mmap, #else diff --git a/linux/drivers/media/dvb/av7110/av7110_ir.c b/linux/drivers/media/dvb/av7110/av7110_ir.c index e706672a1..a879c60b7 100644 --- a/linux/drivers/media/dvb/av7110/av7110_ir.c +++ b/linux/drivers/media/dvb/av7110/av7110_ir.c @@ -7,7 +7,7 @@ #include "av7110.h" -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) #include "input_fake.h" #endif diff --git a/linux/drivers/media/dvb/dvb-core/compat.c b/linux/drivers/media/dvb/dvb-core/compat.c index 21de3c588..d76a0a3fc 100644 --- a/linux/drivers/media/dvb/dvb-core/compat.c +++ b/linux/drivers/media/dvb/dvb-core/compat.c @@ -8,7 +8,7 @@ * even when everything compiles. */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) || !CONFIG_VIDEO_DEV +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || !CONFIG_VIDEO_DEV int generic_usercopy(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg, int (*func)(struct inode *inode, struct file *file, @@ -69,7 +69,7 @@ out: #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) struct page * vmalloc_to_page(void *vmalloc_addr) { unsigned long addr = (unsigned long) vmalloc_addr; @@ -92,7 +92,7 @@ struct page * vmalloc_to_page(void *vmalloc_addr) #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) static u32 crc32_table[256] = { 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h index bc0e7c2bd..1dafb80a5 100644 --- a/linux/drivers/media/dvb/dvb-core/compat.h +++ b/linux/drivers/media/dvb/dvb-core/compat.h @@ -33,7 +33,7 @@ #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) || !CONFIG_VIDEO_DEV +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || !CONFIG_VIDEO_DEV #define video_usercopy generic_usercopy extern int generic_usercopy(struct inode *inode, struct file *file, @@ -42,7 +42,7 @@ extern int generic_usercopy(struct inode *inode, struct file *file, unsigned int cmd, void *arg)); #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define video_devdata(dev) (dev->priv) @@ -61,7 +61,7 @@ extern struct page * vmalloc_to_page(void *addr); #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) extern u32 crc32_le (u32 crc, unsigned char const *p, size_t len); #else #include <linux/crc32.h> |