@@ -86,7 +86,7 @@ static int qla2x00_change_queue_type(struct scsi_device *, int);
86
86
87
87
static struct scsi_host_template qla2x00_driver_template = {
88
88
.module = THIS_MODULE ,
89
- .name = "qla2xxx" ,
89
+ .name = QLA2XXX_DRIVER_NAME ,
90
90
.queuecommand = qla2x00_queuecommand ,
91
91
92
92
.eh_abort_handler = qla2xxx_eh_abort ,
@@ -115,7 +115,7 @@ static struct scsi_host_template qla2x00_driver_template = {
115
115
116
116
static struct scsi_host_template qla24xx_driver_template = {
117
117
.module = THIS_MODULE ,
118
- .name = "qla2xxx" ,
118
+ .name = QLA2XXX_DRIVER_NAME ,
119
119
.queuecommand = qla24xx_queuecommand ,
120
120
121
121
.eh_abort_handler = qla2xxx_eh_abort ,
@@ -1239,7 +1239,7 @@ qla2x00_iospace_config(scsi_qla_host_t *ha)
1239
1239
goto iospace_error_exit ;
1240
1240
}
1241
1241
1242
- if (pci_request_regions (ha -> pdev , "qla2xxx" )) {
1242
+ if (pci_request_regions (ha -> pdev , QLA2XXX_DRIVER_NAME )) {
1243
1243
qla_printk (KERN_WARNING , ha ,
1244
1244
"Failed to reserve PIO/MMIO regions (%s)\n" ,
1245
1245
pci_name (ha -> pdev ));
@@ -1355,7 +1355,7 @@ static int qla2x00_probe_one(struct pci_dev *pdev)
1355
1355
ha -> pdev = pdev ;
1356
1356
ha -> host = host ;
1357
1357
ha -> host_no = host -> host_no ;
1358
- sprintf (ha -> host_str , "qla2xxx_% ld" , ha -> host_no );
1358
+ sprintf (ha -> host_str , "%s_% ld" , QLA2XXX_DRIVER_NAME , ha -> host_no );
1359
1359
1360
1360
/* Set ISP-type information. */
1361
1361
qla2x00_set_isp_flags (ha );
@@ -1538,7 +1538,7 @@ static int qla2x00_probe_one(struct pci_dev *pdev)
1538
1538
host -> transportt = qla2xxx_transport_template ;
1539
1539
1540
1540
ret = request_irq (pdev -> irq , ha -> isp_ops .intr_handler ,
1541
- SA_INTERRUPT |SA_SHIRQ , "qla2xxx" , ha );
1541
+ SA_INTERRUPT |SA_SHIRQ , QLA2XXX_DRIVER_NAME , ha );
1542
1542
if (ret ) {
1543
1543
qla_printk (KERN_WARNING , ha ,
1544
1544
"Failed to reserve interrupt %d already in use.\n" ,
@@ -1868,7 +1868,8 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
1868
1868
continue ;
1869
1869
}
1870
1870
1871
- snprintf (name , sizeof (name ), "qla2xxx_%ld" , ha -> host_no );
1871
+ snprintf (name , sizeof (name ), "%s_%ld" , QLA2XXX_DRIVER_NAME ,
1872
+ ha -> host_no );
1872
1873
ha -> s_dma_pool = dma_pool_create (name , & ha -> pdev -> dev ,
1873
1874
DMA_POOL_SIZE , 8 , 0 );
1874
1875
if (ha -> s_dma_pool == NULL ) {
@@ -2631,7 +2632,7 @@ qla2xxx_remove_one(struct pci_dev *pdev)
2631
2632
}
2632
2633
2633
2634
static struct pci_driver qla2xxx_pci_driver = {
2634
- .name = "qla2xxx" ,
2635
+ .name = QLA2XXX_DRIVER_NAME ,
2635
2636
.driver = {
2636
2637
.owner = THIS_MODULE ,
2637
2638
},
0 commit comments