summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/common/saa7146_fops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c
index b94dcef03..8aa9850fc 100644
--- a/linux/drivers/media/common/saa7146_fops.c
+++ b/linux/drivers/media/common/saa7146_fops.c
@@ -84,8 +84,10 @@ 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);
@@ -107,8 +109,10 @@ 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));
@@ -137,8 +141,10 @@ 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);