summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-08-23 13:55:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-08-23 13:55:25 -0300
commit6e1e0a7781dec40d41a9f8de5f694dacbac70cc6 (patch)
tree66056ad093c93ece22de14ca9a57e7e0e25b9843
parent2d5790ba1659b7cea2c72ac05747f29852fa272d (diff)
downloadmediapointer-dvb-s2-6e1e0a7781dec40d41a9f8de5f694dacbac70cc6.tar.gz
mediapointer-dvb-s2-6e1e0a7781dec40d41a9f8de5f694dacbac70cc6.tar.bz2
compat.h: Fix compilation breakage with vanilla 2.6.16 to 2.6.19
From: Mauro Carvalho Chehab <mchehab@redhat.com> /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 <mchehab@redhat.com>
-rw-r--r--v4l/compat.h6
1 files changed, 6 insertions, 0 deletions
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 */