aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2012-08-22 07:55:05 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-24 04:11:07 -0400
commitee996a691752ae55d26c1dd6de7421c1eb64cffb (patch)
treea72842d354c891f7efbdb5a14cc3424575af64b7 /drivers/scsi
parent33693c7aab43958906941a98f3947d66f4277e03 (diff)
[SCSI] qla4xxx: Replace all !is_qla8022() with is_qla40XX()
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla4xxx/ql4_attr.c10
-rw-r--r--drivers/scsi/qla4xxx/ql4_isr.c2
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c12
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_attr.c b/drivers/scsi/qla4xxx/ql4_attr.c
index befe4f9fa62..a24008f1853 100644
--- a/drivers/scsi/qla4xxx/ql4_attr.c
+++ b/drivers/scsi/qla4xxx/ql4_attr.c
@@ -17,7 +17,7 @@ qla4_8xxx_sysfs_read_fw_dump(struct file *filep, struct kobject *kobj,
17 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj, 17 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj,
18 struct device, kobj))); 18 struct device, kobj)));
19 19
20 if (!is_qla8022(ha)) 20 if (is_qla40XX(ha))
21 return -EINVAL; 21 return -EINVAL;
22 22
23 if (!test_bit(AF_82XX_DUMP_READING, &ha->flags)) 23 if (!test_bit(AF_82XX_DUMP_READING, &ha->flags))
@@ -38,7 +38,7 @@ qla4_8xxx_sysfs_write_fw_dump(struct file *filep, struct kobject *kobj,
38 long reading; 38 long reading;
39 int ret = 0; 39 int ret = 0;
40 40
41 if (!is_qla8022(ha)) 41 if (is_qla40XX(ha))
42 return -EINVAL; 42 return -EINVAL;
43 43
44 if (off != 0) 44 if (off != 0)
@@ -214,7 +214,7 @@ qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr,
214{ 214{
215 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev)); 215 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev));
216 216
217 if (!is_qla8022(ha)) 217 if (is_qla40XX(ha))
218 return -ENOSYS; 218 return -ENOSYS;
219 219
220 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_cnt); 220 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_cnt);
@@ -226,7 +226,7 @@ qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr,
226{ 226{
227 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev)); 227 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev));
228 228
229 if (!is_qla8022(ha)) 229 if (is_qla40XX(ha))
230 return -ENOSYS; 230 return -ENOSYS;
231 231
232 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_num); 232 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_num);
@@ -238,7 +238,7 @@ qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr,
238{ 238{
239 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev)); 239 struct scsi_qla_host *ha = to_qla_host(class_to_shost(dev));
240 240
241 if (!is_qla8022(ha)) 241 if (is_qla40XX(ha))
242 return -ENOSYS; 242 return -ENOSYS;
243 243
244 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->iscsi_pci_func_cnt); 244 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->iscsi_pci_func_cnt);
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c
index dda602cee43..55d366b14a5 100644
--- a/drivers/scsi/qla4xxx/ql4_isr.c
+++ b/drivers/scsi/qla4xxx/ql4_isr.c
@@ -1193,7 +1193,7 @@ int qla4xxx_request_irqs(struct scsi_qla_host *ha)
1193{ 1193{
1194 int ret; 1194 int ret;
1195 1195
1196 if (!is_qla8022(ha)) 1196 if (is_qla40XX(ha))
1197 goto try_intx; 1197 goto try_intx;
1198 1198
1199 if (ql4xenablemsix == 2) 1199 if (ql4xenablemsix == 2)
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index ea8845ba0aa..519f6667dc0 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -2658,7 +2658,7 @@ static void qla4xxx_timer(struct scsi_qla_host *ha)
2658 qla4_8xxx_watchdog(ha); 2658 qla4_8xxx_watchdog(ha);
2659 } 2659 }
2660 2660
2661 if (!is_qla8022(ha)) { 2661 if (is_qla40XX(ha)) {
2662 /* Check for heartbeat interval. */ 2662 /* Check for heartbeat interval. */
2663 if (ha->firmware_options & FWOPT_HEARTBEAT_ENABLE && 2663 if (ha->firmware_options & FWOPT_HEARTBEAT_ENABLE &&
2664 ha->heartbeat_interval != 0) { 2664 ha->heartbeat_interval != 0) {
@@ -2982,8 +2982,8 @@ static int qla4xxx_recover_adapter(struct scsi_qla_host *ha)
2982 /* Issue full chip reset if recovering from a catastrophic error, 2982 /* Issue full chip reset if recovering from a catastrophic error,
2983 * or if stop_firmware fails for ISP-82xx. 2983 * or if stop_firmware fails for ISP-82xx.
2984 * This is the default case for ISP-4xxx */ 2984 * This is the default case for ISP-4xxx */
2985 if (!is_qla8022(ha) || reset_chip) { 2985 if (is_qla40XX(ha) || reset_chip) {
2986 if (!is_qla8022(ha)) 2986 if (is_qla40XX(ha))
2987 goto chip_reset; 2987 goto chip_reset;
2988 2988
2989 /* Check if 82XX firmware is alive or not 2989 /* Check if 82XX firmware is alive or not
@@ -3023,7 +3023,7 @@ recover_ha_init_adapter:
3023 /* For ISP-4xxx, force function 1 to always initialize 3023 /* For ISP-4xxx, force function 1 to always initialize
3024 * before function 3 to prevent both funcions from 3024 * before function 3 to prevent both funcions from
3025 * stepping on top of the other */ 3025 * stepping on top of the other */
3026 if (!is_qla8022(ha) && (ha->mac_index == 3)) 3026 if (is_qla40XX(ha) && (ha->mac_index == 3))
3027 ssleep(6); 3027 ssleep(6);
3028 3028
3029 /* NOTE: AF_ONLINE flag set upon successful completion of 3029 /* NOTE: AF_ONLINE flag set upon successful completion of
@@ -5238,7 +5238,7 @@ static int __devinit qla4xxx_probe_adapter(struct pci_dev *pdev,
5238 * so that irqs will be registered after crbinit but before 5238 * so that irqs will be registered after crbinit but before
5239 * mbx_intr_enable. 5239 * mbx_intr_enable.
5240 */ 5240 */
5241 if (!is_qla8022(ha)) { 5241 if (is_qla40XX(ha)) {
5242 ret = qla4xxx_request_irqs(ha); 5242 ret = qla4xxx_request_irqs(ha);
5243 if (ret) { 5243 if (ret) {
5244 ql4_printk(KERN_WARNING, ha, "Failed to reserve " 5244 ql4_printk(KERN_WARNING, ha, "Failed to reserve "
@@ -5373,7 +5373,7 @@ static void __devexit qla4xxx_remove_adapter(struct pci_dev *pdev)
5373 5373
5374 ha = pci_get_drvdata(pdev); 5374 ha = pci_get_drvdata(pdev);
5375 5375
5376 if (!is_qla8022(ha)) 5376 if (is_qla40XX(ha))
5377 qla4xxx_prevent_other_port_reinit(ha); 5377 qla4xxx_prevent_other_port_reinit(ha);
5378 5378
5379 /* destroy iface from sysfs */ 5379 /* destroy iface from sysfs */