summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget-ci.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-30 13:21:13 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-08-30 13:21:13 +0200
commit19c1ee13a8aa1ac1d046a717f327353a6ea9e6b0 (patch)
treee651e6704632e879eac365d0cfb718494fd0fa54 /linux/drivers/media/dvb/ttpci/budget-ci.c
parent56e4c75fce1cca2ee4553fd47b31dc8b6d43d688 (diff)
downloadmediapointer-dvb-s2-19c1ee13a8aa1ac1d046a717f327353a6ea9e6b0.tar.gz
mediapointer-dvb-s2-19c1ee13a8aa1ac1d046a717f327353a6ea9e6b0.tar.bz2
v4l: fix assorted compile warnings/errors
From: Hans Verkuil <hverkuil@xs4all.nl> BIT define conflicts on kernels < 2.6.24, byteorder/swab.h doesn't need to be included at all. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/budget-ci.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-ci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-ci.c b/linux/drivers/media/dvb/ttpci/budget-ci.c
index 9a81a07f7..0ccc9db6e 100644
--- a/linux/drivers/media/dvb/ttpci/budget-ci.c
+++ b/linux/drivers/media/dvb/ttpci/budget-ci.c
@@ -34,6 +34,10 @@
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/input.h>
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 23)
+/* Fix compile warning */
+#undef BIT
+#endif
#include <linux/spinlock.h>
#include <media/ir-common.h>