summaryrefslogtreecommitdiff
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
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>
-rw-r--r--linux/drivers/media/radio/radio-gemtek-pci.c5
-rw-r--r--linux/drivers/media/video/meye.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/radio/radio-gemtek-pci.c b/linux/drivers/media/radio/radio-gemtek-pci.c
index 4829eea69..02242f1b3 100644
--- a/linux/drivers/media/radio/radio-gemtek-pci.c
+++ b/linux/drivers/media/radio/radio-gemtek-pci.c
@@ -433,8 +433,13 @@ static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci
devradio->priv = card;
gemtek_pci_mute( card );
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
printk( KERN_INFO "Gemtek PCI Radio (rev. %d) found at 0x%04x-0x%04x.\n",
pci_dev->revision, card->iobase, card->iobase + card->length - 1 );
+#else
+ printk( KERN_INFO "Gemtek PCI Radio found at 0x%04x-0x%04x.\n",
+ card->iobase, card->iobase + card->length - 1 );
+#endif
return 0;
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;