aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/atp870u.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2012-03-14 15:04:30 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-03-28 09:36:37 -0400
commit7d7311c44567cd2001ca318e4de64b753d9d35f8 (patch)
tree060e090a47d6271a95fd800a44600af925e26757 /drivers/scsi/atp870u.c
parent2280512342ead9a2858b1490b21e5bcaf4f4cfc7 (diff)
[SCSI] atp870u, mpt2sas, qla4xxx use pci_dev->revision
commit 44c10138fd4bbc4b6d6bff0873c24902f2a9da65 (PCI: Change all drivers to use pci_device->revision) converted all drivers to use pci_dev->revision. Convert these three drivers which got missed. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/atp870u.c')
-rw-r--r--drivers/scsi/atp870u.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c
index 7e6eca4a125e..a9561fb143f3 100644
--- a/drivers/scsi/atp870u.c
+++ b/drivers/scsi/atp870u.c
@@ -2583,7 +2583,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
2583 * this than via the PCI device table 2583 * this than via the PCI device table
2584 */ 2584 */
2585 if (ent->device == PCI_DEVICE_ID_ARTOP_AEC7610) { 2585 if (ent->device == PCI_DEVICE_ID_ARTOP_AEC7610) {
2586 error = pci_read_config_byte(pdev, PCI_CLASS_REVISION, &atpdev->chip_ver); 2586 atpdev->chip_ver = pdev->revision;
2587 if (atpdev->chip_ver < 2) 2587 if (atpdev->chip_ver < 2)
2588 goto err_eio; 2588 goto err_eio;
2589 } 2589 }
@@ -2602,7 +2602,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
2602 base_io &= 0xfffffff8; 2602 base_io &= 0xfffffff8;
2603 2603
2604 if ((ent->device == ATP880_DEVID1)||(ent->device == ATP880_DEVID2)) { 2604 if ((ent->device == ATP880_DEVID1)||(ent->device == ATP880_DEVID2)) {
2605 error = pci_read_config_byte(pdev, PCI_CLASS_REVISION, &atpdev->chip_ver); 2605 atpdev->chip_ver = pdev->revision;
2606 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);//JCC082803 2606 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);//JCC082803
2607 2607
2608 host_id = inb(base_io + 0x39); 2608 host_id = inb(base_io + 0x39);