aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 3bc3e1749f32..71b6bcc181f9 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -3263,8 +3263,12 @@ qla24xx_nvram_config(scsi_qla_host_t *ha)
3263 /* Determine NVRAM starting address. */ 3263 /* Determine NVRAM starting address. */
3264 ha->nvram_size = sizeof(struct nvram_24xx); 3264 ha->nvram_size = sizeof(struct nvram_24xx);
3265 ha->nvram_base = FA_NVRAM_FUNC0_ADDR; 3265 ha->nvram_base = FA_NVRAM_FUNC0_ADDR;
3266 if (PCI_FUNC(ha->pdev->devfn)) 3266 ha->vpd_size = FA_NVRAM_VPD_SIZE;
3267 ha->vpd_base = FA_NVRAM_VPD0_ADDR;
3268 if (PCI_FUNC(ha->pdev->devfn)) {
3267 ha->nvram_base = FA_NVRAM_FUNC1_ADDR; 3269 ha->nvram_base = FA_NVRAM_FUNC1_ADDR;
3270 ha->vpd_base = FA_NVRAM_VPD1_ADDR;
3271 }
3268 3272
3269 /* Get NVRAM data and calculate checksum. */ 3273 /* Get NVRAM data and calculate checksum. */
3270 dptr = (uint32_t *)nv; 3274 dptr = (uint32_t *)nv;