From 6e1e0a7781dec40d41a9f8de5f694dacbac70cc6 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 23 Aug 2009 13:55:25 -0300 Subject: compat.h: Fix compilation breakage with vanilla 2.6.16 to 2.6.19 From: Mauro Carvalho Chehab /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4635: warning: implicit declaration of function 'PCI_VDEVICE' /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4635: error: 'BROOKTREE' undeclared here (not in a function) /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4635: error: initializer element is not constant /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4635: error: (near initialization for 'bttv_pci_tbl[0].vendor') /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4636: error: initializer element is not constant /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4636: error: (near initialization for 'bttv_pci_tbl[1].vendor') /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4637: error: initializer element is not constant /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4637: error: (near initialization for 'bttv_pci_tbl[2].vendor') /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4638: error: initializer element is not constant /marune/build/v4l-dvb-master/v4l/bttv-driver.c:4638: error: (near initialization for 'bttv_pci_tbl[3].vendor') Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'v4l') diff --git a/v4l/compat.h b/v4l/compat.h index 51e4408d4..465b3ae8b 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -508,4 +508,10 @@ static inline unsigned long hrtimer_forward_now(struct hrtimer *timer, #endif #endif /* _LINUX_HRTIMER_H */ +#ifndef PCI_VDEVICE +#define PCI_VDEVICE(vendor, device) \ + PCI_VENDOR_ID_##vendor, (device), \ + PCI_ANY_ID, PCI_ANY_ID, 0, 0 +#endif + #endif /* _COMPAT_H */ -- cgit v1.2.3