[SCSI] qla4xxx: Pass correct function param to qla4_8xxx_rd_direct
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Sat, 29 Dec 2012 07:24:52 +0000 (02:24 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 30 Jan 2013 00:44:34 +0000 (11:44 +1100)
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c

index 3a968168ca5a92d3aabfe205d9fabe7eb85ef9b4..60526bb469d356c72be5f716581280e3d19cb08f 100644 (file)
@@ -5271,7 +5271,7 @@ static int qla4xxx_probe_adapter(struct pci_dev *pdev,
                if (is_qla80XX(ha)) {
                        ha->isp_ops->idc_lock(ha);
                        dev_state = qla4_8xxx_rd_direct(ha,
-                                                       QLA82XX_CRB_DEV_STATE);
+                                                       QLA8XXX_CRB_DEV_STATE);
                        ha->isp_ops->idc_unlock(ha);
                        if (dev_state == QLA8XXX_DEV_FAILED) {
                                ql4_printk(KERN_WARNING, ha, "%s: don't retry "