diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-07-16 16:13:28 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-07-16 16:13:28 +0000 |
commit | 64c0538be64e95fafbb6a9c8eb8be0ee79a8ed71 (patch) | |
tree | 1883e92ab822de216bfc539efa3deede89b92ca5 /linux/drivers/media/common/saa7146_fops.c | |
parent | a0ba7ba1dd99d05426eb932f1f3fa27c0f3a33f8 (diff) | |
download | mediapointer-dvb-s2-64c0538be64e95fafbb6a9c8eb8be0ee79a8ed71.tar.gz mediapointer-dvb-s2-64c0538be64e95fafbb6a9c8eb8be0ee79a8ed71.tar.bz2 |
Remove all #include <linux/version.h> and all references
to LINUX_VERSION_CODE and KERNEL_VERSION. Based on
patch by Olaf Hering.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/common/saa7146_fops.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_fops.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c index 6be8e54d2..f0b291de8 100644 --- a/linux/drivers/media/common/saa7146_fops.c +++ b/linux/drivers/media/common/saa7146_fops.c @@ -1,5 +1,4 @@ #include <media/saa7146_vv.h> -#include <linux/version.h> #define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && dev->vv_data->vbi_minor != -1) @@ -74,10 +73,8 @@ int saa7146_buffer_queue(struct saa7146_dev *dev, struct saa7146_buf *buf) { #ifdef DEBUG_SPINLOCKS -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif -#endif DEB_EE(("dev:%p, dmaq:%p, buf:%p\n", dev, q, buf)); BUG_ON(!q); @@ -99,10 +96,8 @@ void saa7146_buffer_finish(struct saa7146_dev *dev, int state) { #ifdef DEBUG_SPINLOCKS -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif -#endif DEB_EE(("dev:%p, dmaq:%p, state:%d\n", dev, q, state)); DEB_EE(("q->curr:%p\n",q->curr)); @@ -131,10 +126,8 @@ void saa7146_buffer_next(struct saa7146_dev *dev, DEB_INT(("dev:%p, dmaq:%p, vbi:%d\n", dev, q, vbi)); #ifdef DEBUG_SPINLOCKS -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) BUG_ON(!spin_is_locked(&dev->slock)); #endif -#endif if (!list_empty(&q->queue)) { /* activate next one from queue */ buf = list_entry(q->queue.next,struct saa7146_buf,vb.queue); @@ -346,11 +339,7 @@ static int fops_mmap(struct file *file, struct vm_area_struct * vma) return 0; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) - return videobuf_mmap_mapper(vma,q); -#else return videobuf_mmap_mapper(q,vma); -#endif } static unsigned int fops_poll(struct file *file, struct poll_table_struct *wait) |