From e2e127390240243dc1f163eb96711e3792620a18 Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Mon, 31 Jan 2005 11:32:47 +0000 Subject: - add some defines to compat.h to build again on older kernels. - misc fixes. --- v4l/compat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'v4l') 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 -- cgit v1.2.3