diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index e21316a8ecf3..49e831561d16 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -1014,11 +1014,13 @@ qla24xx_update_fw_options(scsi_qla_host_t *ha) | |||
1014 | int rval; | 1014 | int rval; |
1015 | 1015 | ||
1016 | /* Update Serial Link options. */ | 1016 | /* Update Serial Link options. */ |
1017 | if ((ha->fw_seriallink_options24[0] & BIT_0) == 0) | 1017 | if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0) |
1018 | return; | 1018 | return; |
1019 | 1019 | ||
1020 | rval = qla2x00_set_serdes_params(ha, ha->fw_seriallink_options24[1], | 1020 | rval = qla2x00_set_serdes_params(ha, |
1021 | ha->fw_seriallink_options24[2], ha->fw_seriallink_options24[3]); | 1021 | le16_to_cpu(ha->fw_seriallink_options24[1]), |
1022 | le16_to_cpu(ha->fw_seriallink_options24[2]), | ||
1023 | le16_to_cpu(ha->fw_seriallink_options24[3])); | ||
1022 | if (rval != QLA_SUCCESS) { | 1024 | if (rval != QLA_SUCCESS) { |
1023 | qla_printk(KERN_WARNING, ha, | 1025 | qla_printk(KERN_WARNING, ha, |
1024 | "Unable to update Serial Link options (%x).\n", rval); | 1026 | "Unable to update Serial Link options (%x).\n", rval); |