diff options
author | Bjørn Mork <bjorn@mork.no> | 2011-03-21 10:35:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 06:26:16 -0400 |
commit | abd34d8d6b213c792c1a06fd75488595c5fb6d3f (patch) | |
tree | d5aa6d8081e8bb7ad152153f28e29f472fe4e304 /drivers/media/dvb/bt8xx | |
parent | ec0c8d555a93aa7e2c5c4f11f12686e5b2245696 (diff) |
[media] use pci_dev->revision
pci_setup_device() has saved the PCI revision in the pci_dev
struct since Linux 2.6.23. Use it.
Cc: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/bt8xx')
-rw-r--r-- | drivers/media/dvb/bt8xx/bt878.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/bt878.c b/drivers/media/dvb/bt8xx/bt878.c index 99d62094f908..b34fa95185e4 100644 --- a/drivers/media/dvb/bt8xx/bt878.c +++ b/drivers/media/dvb/bt8xx/bt878.c | |||
@@ -460,7 +460,7 @@ static int __devinit bt878_probe(struct pci_dev *dev, | |||
460 | goto fail0; | 460 | goto fail0; |
461 | } | 461 | } |
462 | 462 | ||
463 | pci_read_config_byte(dev, PCI_CLASS_REVISION, &bt->revision); | 463 | bt->revision = dev->revision; |
464 | pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); | 464 | pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); |
465 | 465 | ||
466 | 466 | ||