summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r--linux/drivers/media/common/saa7146.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146.h b/linux/drivers/media/common/saa7146.h
index 090281eb5..5c6455c6d 100644
--- a/linux/drivers/media/common/saa7146.h
+++ b/linux/drivers/media/common/saa7146.h
@@ -31,8 +31,10 @@ from flaws in video-buf.c => Gerd Knorr */
#define saa7146_read(sxy,adr) readl(sxy->mem+(adr))
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
#define BUG_ON(condition) do { if ((condition)!=0) BUG(); } while(0)
#endif
+#endif
#define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && 0 != dev->ext->vbi)