summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2005-01-31 11:32:47 +0000
committerGerd Knorr <devnull@localhost>2005-01-31 11:32:47 +0000
commite2e127390240243dc1f163eb96711e3792620a18 (patch)
treee053198478ecbbfe48feb84f9f10bc4a38984170 /v4l
parent6e7d9216e42a255b6382d67bbd81a0875e988ff7 (diff)
downloadmediapointer-dvb-s2-e2e127390240243dc1f163eb96711e3792620a18.tar.gz
mediapointer-dvb-s2-e2e127390240243dc1f163eb96711e3792620a18.tar.bz2
- add some defines to compat.h to build again on older kernels.
- misc fixes.
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 36bdcb188..468053472 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -22,6 +22,11 @@
# define __iomem
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
+# define pci_choose_state(pci_dev, state) (state)
+# define PCI_D0 (0)
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
static inline unsigned long msecs_to_jiffies(const unsigned int m)
{
@@ -64,7 +69,6 @@ static inline unsigned long msleep_interruptible(unsigned int msecs)
return jiffies_to_msecs(timeout);
}
#endif
-
/*
* Local variables:
* c-basic-offset: 8