diff options
Diffstat (limited to 'drivers/media/common/saa7146_core.c')
-rw-r--r-- | drivers/media/common/saa7146_core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/common/saa7146_core.c b/drivers/media/common/saa7146_core.c index 9f47e383c57a..9af2140b57a4 100644 --- a/drivers/media/common/saa7146_core.c +++ b/drivers/media/common/saa7146_core.c | |||
@@ -378,12 +378,7 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent | |||
378 | dev->pci = pci; | 378 | dev->pci = pci; |
379 | 379 | ||
380 | /* get chip-revision; this is needed to enable bug-fixes */ | 380 | /* get chip-revision; this is needed to enable bug-fixes */ |
381 | err = pci_read_config_dword(pci, PCI_CLASS_REVISION, &dev->revision); | 381 | dev->revision = pci->revision; |
382 | if (err < 0) { | ||
383 | ERR(("pci_read_config_dword() failed.\n")); | ||
384 | goto err_disable; | ||
385 | } | ||
386 | dev->revision &= 0xf; | ||
387 | 382 | ||
388 | /* remap the memory from virtual to physical address */ | 383 | /* remap the memory from virtual to physical address */ |
389 | 384 | ||