diff options
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 13 | ||||
-rw-r--r-- | v4l/versions.txt | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 89ca51748..584d96035 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -5,6 +5,10 @@ #ifndef _COMPAT_H #define _COMPAT_H +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) +# define set_freezable() +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) # define minor(x) MINOR(x) #endif @@ -385,6 +389,15 @@ typedef int bool; #define pci_match_device(drv, dev) pci_match_device((drv)->id_table, dev) #endif +/* pci_dev got a new revision field in 2.6.23-rc1 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) && defined(LINUX_PCI_H) +/* Just make it easier to subsitute pci_dev->revision with + * v4l_compat_pci_rev(pci_dev). It's too bad there isn't some kind of context + * sensitive macro in C that could do this for us. */ +static inline u8 v4l_compat_pci_rev(struct pci_dev *pci) +{ u8 rev; pci_read_config_byte(pci, PCI_REVISION_ID, &rev); return rev; } +#endif + #endif /* * Local variables: diff --git a/v4l/versions.txt b/v4l/versions.txt index a628aa0ed..b3bdc3c63 100644 --- a/v4l/versions.txt +++ b/v4l/versions.txt @@ -3,6 +3,10 @@ # This driver is marked at kernel as broken VIDEO_PLANB +[2.6.22] +#This driver requires I2C probe/remove fields +VIDEO_TCM825X + [2.6.19] #This driver were developed at kernel 2.6.19, requiring vmalloc_user/remap_vmalloc_range VIDEO_CAFE_CCIC |