diff options
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_pci.c')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/dvb/mantis/mantis_pci.c b/drivers/media/dvb/mantis/mantis_pci.c index 10a432a79d0..371558af2d9 100644 --- a/drivers/media/dvb/mantis/mantis_pci.c +++ b/drivers/media/dvb/mantis/mantis_pci.c | |||
@@ -48,7 +48,7 @@ | |||
48 | 48 | ||
49 | int __devinit mantis_pci_init(struct mantis_pci *mantis) | 49 | int __devinit mantis_pci_init(struct mantis_pci *mantis) |
50 | { | 50 | { |
51 | u8 revision, latency; | 51 | u8 latency; |
52 | struct mantis_hwconfig *config = mantis->hwconfig; | 52 | struct mantis_hwconfig *config = mantis->hwconfig; |
53 | struct pci_dev *pdev = mantis->pdev; | 53 | struct pci_dev *pdev = mantis->pdev; |
54 | int err, ret = 0; | 54 | int err, ret = 0; |
@@ -95,9 +95,8 @@ int __devinit mantis_pci_init(struct mantis_pci *mantis) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &latency); | 97 | pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &latency); |
98 | pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); | ||
99 | mantis->latency = latency; | 98 | mantis->latency = latency; |
100 | mantis->revision = revision; | 99 | mantis->revision = pdev->revision; |
101 | 100 | ||
102 | dprintk(MANTIS_ERROR, 0, " Mantis Rev %d [%04x:%04x], ", | 101 | dprintk(MANTIS_ERROR, 0, " Mantis Rev %d [%04x:%04x], ", |
103 | mantis->revision, | 102 | mantis->revision, |