diff options
author | Bjørn Mork <bjorn@mork.no> | 2011-03-21 11:35:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 07:26:16 -0300 |
commit | abd34d8d6b213c792c1a06fd75488595c5fb6d3f (patch) | |
tree | d5aa6d8081e8bb7ad152153f28e29f472fe4e304 /drivers/media/video/zoran/zoran_card.c | |
parent | ec0c8d555a93aa7e2c5c4f11f12686e5b2245696 (diff) | |
download | kernel_samsung_aries-abd34d8d6b213c792c1a06fd75488595c5fb6d3f.zip kernel_samsung_aries-abd34d8d6b213c792c1a06fd75488595c5fb6d3f.tar.gz kernel_samsung_aries-abd34d8d6b213c792c1a06fd75488595c5fb6d3f.tar.bz2 |
[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/video/zoran/zoran_card.c')
-rw-r--r-- | drivers/media/video/zoran/zoran_card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/zoran/zoran_card.c b/drivers/media/video/zoran/zoran_card.c index 9f2bac5..ba6878b 100644 --- a/drivers/media/video/zoran/zoran_card.c +++ b/drivers/media/video/zoran/zoran_card.c @@ -1230,7 +1230,7 @@ static int __devinit zoran_probe(struct pci_dev *pdev, mutex_init(&zr->other_lock); if (pci_enable_device(pdev)) goto zr_unreg; - pci_read_config_byte(zr->pci_dev, PCI_CLASS_REVISION, &zr->revision); + zr->revision = zr->pci_dev->revision; dprintk(1, KERN_INFO |