Mercurial > mplayer.hg
changeset 22678:6ab7d3a5efb0
Remove support for 2.5.x kernels.
It's just a bunch of ugly #ifdef conditionals and probably does not work
with later 2.5.x versions anyway. For 2.6.x there is an external version.
author | diego |
---|---|
date | Sat, 17 Mar 2007 15:12:58 +0000 |
parents | 668f15f32e2c |
children | 604a0943980f |
files | drivers/mga_vid.c |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/drivers/mga_vid.c Sat Mar 17 15:01:16 2007 +0000 +++ b/drivers/mga_vid.c Sat Mar 17 15:12:58 2007 +0000 @@ -145,9 +145,7 @@ *endp = (char *)cp; return result; } -#endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,5) static long simple_strtol(const char *cp,char **endp,unsigned int base) { if(*cp=='-') @@ -1461,13 +1459,8 @@ return(-EAGAIN); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,3) - if(remap_page_range(vma, vma->vm_start, card->mem_base + card->src_base, - vma->vm_end - vma->vm_start, vma->vm_page_prot)) -#else if(remap_page_range(vma->vm_start, card->mem_base + card->src_base, vma->vm_end - vma->vm_start, vma->vm_page_prot)) -#endif { printk(KERN_ERR "mga_vid: error mapping video memory\n"); return(-EAGAIN); @@ -1507,11 +1500,7 @@ { mga_card_t * card; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,2) - int minor = MINOR(inode->i_rdev.value); -#else int minor = MINOR(inode->i_rdev); -#endif if(!file->private_data) {