summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/meye.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-07-19 16:45:46 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-07-19 16:45:46 -0400
commit62669e099bdeb24fa4befb613b6d81b0b574c163 (patch)
treedd328764b42dc826fd0308f3d9130548d18de154 /linux/drivers/media/video/meye.c
parent8eafdf22da24dd4b20c2d1cef50a032e3ff31762 (diff)
downloadmediapointer-dvb-s2-62669e099bdeb24fa4befb613b6d81b0b574c163.tar.gz
mediapointer-dvb-s2-62669e099bdeb24fa4befb613b6d81b0b574c163.tar.bz2
compat: only access pci_dev->revision for kernels later than 2.6.22
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/meye.c')
-rw-r--r--linux/drivers/media/video/meye.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/meye.c b/linux/drivers/media/video/meye.c
index ca290001a..be29d0483 100644
--- a/linux/drivers/media/video/meye.c
+++ b/linux/drivers/media/video/meye.c
@@ -1941,8 +1941,13 @@ static int __devinit meye_probe(struct pci_dev *pcidev,
printk(KERN_INFO "meye: Motion Eye Camera Driver v%s.\n",
MEYE_DRIVER_VERSION);
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
printk(KERN_INFO "meye: mchip KL5A72002 rev. %d, base %lx, irq %d\n",
meye.mchip_dev->revision, mchip_adr, meye.mchip_irq);
+#else
+ printk(KERN_INFO "meye: mchip KL5A72002, base %lx, irq %d\n",
+ mchip_adr, meye.mchip_irq);
+#endif
return 0;