Skip to contentSkip to conversation

qla4xxx: use pci_dev->revision

PATCH Superseded Sergei Shtylyov 1 participant 2 messages Feb 11, 2011

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qla4xxx: use pci_dev->revision

The 'qla4xxx' driver was merged somewhat later than commit 44c10138fd4bbc4b6d6bff0873c24902f2a9da65 (PCI: Change all drivers to use pci_device->revision) and so wasn't subject to the conversion...

 drivers/scsi/qla4xxx/ql4_os.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/qla4xxx/ql4_os.c +2 -4
Index: linux-2.6/drivers/scsi/qla4xxx/ql4_os.c
===================================================================
@@ -1441,7 +1441,6 @@ static void qla4xxx_free_adapter(struct 
 int qla4_8xxx_iospace_config(struct scsi_qla_host *ha)
 {
 	int status = 0;
-	uint8_t revision_id;
 	unsigned long mem_base, mem_len, db_base, db_len;
 	struct pci_dev *pdev = ha->pdev;
 
@@ -1453,10 +1452,9 @@ int qla4_8xxx_iospace_config(struct scsi
 		goto iospace_error_exit;
 	}
 
-	pci_read_config_byte(pdev, PCI_REVISION_ID, &revision_id);
 	DEBUG2(printk(KERN_INFO "%s: revision-id=%d\n",
-	    __func__, revision_id));
-	ha->revision_id = revision_id;
+	    __func__, pdev->revision));
+	ha->revision_id = pdev->revision;
 
 	/* remap phys address */
 	mem_base = pci_resource_start(pdev, 0); /* 0 is for BAR 0 */
#1 lore raw

Hello.

Quoted 1 line · Sergei Shtylyov

The 'qla4xxx' driver was merged somewhat later than commit

Hm, I got the dates wrong -- it was merged before that commit.
But without the code in question which apparently got added later than that commit. I'll fix up the change log...

Quoted 4 lines

44c10138fd4bbc4b6d6bff0873c24902f2a9da65 (PCI: Change all drivers to use pci_device->revision) and so wasn't subject to the conversion...

WBR, Sergei