Commit 01fbfe0b authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley

[SCSI] advansys: Use DRV_NAME

Follow the example of some other drivers by defining DRV_NAME to be
"advansys".  Prevents spelling mistakes.
Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 95c9f162
#define DRV_NAME "advansys"
#define ASC_VERSION "3.4" /* AdvanSys Driver Version */ #define ASC_VERSION "3.4" /* AdvanSys Driver Version */
/* /*
...@@ -3213,11 +3214,11 @@ advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev, ...@@ -3213,11 +3214,11 @@ advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev,
} }
static struct scsi_host_template advansys_template = { static struct scsi_host_template advansys_template = {
.proc_name = "advansys", .proc_name = DRV_NAME,
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
.proc_info = advansys_proc_info, .proc_info = advansys_proc_info,
#endif #endif
.name = "advansys", .name = DRV_NAME,
.info = advansys_info, .info = advansys_info,
.queuecommand = advansys_queuecommand, .queuecommand = advansys_queuecommand,
.eh_bus_reset_handler = advansys_reset, .eh_bus_reset_handler = advansys_reset,
...@@ -14634,7 +14635,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type) ...@@ -14634,7 +14635,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type)
/* Register DMA channel for ISA bus. */ /* Register DMA channel for ISA bus. */
if (asc_dvc_varp->bus_type & ASC_IS_ISA) { if (asc_dvc_varp->bus_type & ASC_IS_ISA) {
shost->dma_channel = asc_dvc_varp->cfg->isa_dma_channel; shost->dma_channel = asc_dvc_varp->cfg->isa_dma_channel;
ret = request_dma(shost->dma_channel, "advansys"); ret = request_dma(shost->dma_channel, DRV_NAME);
if (ret) { if (ret) {
ASC_PRINT3 ASC_PRINT3
("advansys_board_found: board %d: request_dma() %d failed %d\n", ("advansys_board_found: board %d: request_dma() %d failed %d\n",
...@@ -14650,7 +14651,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type) ...@@ -14650,7 +14651,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type)
ASC_DBG1(2, "advansys_board_found: request_irq() %d\n", shost->irq); ASC_DBG1(2, "advansys_board_found: request_irq() %d\n", shost->irq);
ret = request_irq(shost->irq, advansys_interrupt, share_irq, ret = request_irq(shost->irq, advansys_interrupt, share_irq,
"advansys", shost); DRV_NAME, shost);
if (ret) { if (ret) {
if (ret == -EBUSY) { if (ret == -EBUSY) {
...@@ -14754,7 +14755,7 @@ static int __devinit advansys_isa_probe(struct device *dev, unsigned int id) ...@@ -14754,7 +14755,7 @@ static int __devinit advansys_isa_probe(struct device *dev, unsigned int id)
PortAddr iop_base = _asc_def_iop_base[id]; PortAddr iop_base = _asc_def_iop_base[id];
struct Scsi_Host *shost; struct Scsi_Host *shost;
if (!request_region(iop_base, ASC_IOADR_GAP, "advansys")) { if (!request_region(iop_base, ASC_IOADR_GAP, DRV_NAME)) {
ASC_DBG1(1, "advansys_isa_match: I/O port 0x%x busy\n", ASC_DBG1(1, "advansys_isa_match: I/O port 0x%x busy\n",
iop_base); iop_base);
return -ENODEV; return -ENODEV;
...@@ -14790,7 +14791,7 @@ static struct isa_driver advansys_isa_driver = { ...@@ -14790,7 +14791,7 @@ static struct isa_driver advansys_isa_driver = {
.remove = __devexit_p(advansys_isa_remove), .remove = __devexit_p(advansys_isa_remove),
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "advansys", .name = DRV_NAME,
}, },
}; };
...@@ -14799,7 +14800,7 @@ static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id) ...@@ -14799,7 +14800,7 @@ static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id)
PortAddr iop_base = _asc_def_iop_base[id]; PortAddr iop_base = _asc_def_iop_base[id];
struct Scsi_Host *shost; struct Scsi_Host *shost;
if (!request_region(iop_base, ASC_IOADR_GAP, "advansys")) { if (!request_region(iop_base, ASC_IOADR_GAP, DRV_NAME)) {
ASC_DBG1(1, "advansys_vlb_match: I/O port 0x%x busy\n", ASC_DBG1(1, "advansys_vlb_match: I/O port 0x%x busy\n",
iop_base); iop_base);
return -ENODEV; return -ENODEV;
...@@ -14867,7 +14868,7 @@ static int __devinit advansys_eisa_probe(struct device *dev) ...@@ -14867,7 +14868,7 @@ static int __devinit advansys_eisa_probe(struct device *dev)
err = -ENODEV; err = -ENODEV;
for (i = 0; i < 2; i++, ioport += 0x20) { for (i = 0; i < 2; i++, ioport += 0x20) {
if (!request_region(ioport, ASC_IOADR_GAP, "advansys")) { if (!request_region(ioport, ASC_IOADR_GAP, DRV_NAME)) {
printk(KERN_WARNING "Region %x-%x busy\n", ioport, printk(KERN_WARNING "Region %x-%x busy\n", ioport,
ioport + ASC_IOADR_GAP - 1); ioport + ASC_IOADR_GAP - 1);
continue; continue;
...@@ -14925,7 +14926,7 @@ static __devexit int advansys_eisa_remove(struct device *dev) ...@@ -14925,7 +14926,7 @@ static __devexit int advansys_eisa_remove(struct device *dev)
static struct eisa_driver advansys_eisa_driver = { static struct eisa_driver advansys_eisa_driver = {
.id_table = advansys_eisa_table, .id_table = advansys_eisa_table,
.driver = { .driver = {
.name = "advansys", .name = DRV_NAME,
.probe = advansys_eisa_probe, .probe = advansys_eisa_probe,
.remove = __devexit_p(advansys_eisa_remove), .remove = __devexit_p(advansys_eisa_remove),
} }
...@@ -14972,7 +14973,7 @@ advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -14972,7 +14973,7 @@ advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
err = pci_enable_device(pdev); err = pci_enable_device(pdev);
if (err) if (err)
goto fail; goto fail;
err = pci_request_regions(pdev, "advansys"); err = pci_request_regions(pdev, DRV_NAME);
if (err) if (err)
goto disable_device; goto disable_device;
pci_set_master(pdev); pci_set_master(pdev);
...@@ -15007,7 +15008,7 @@ static void __devexit advansys_pci_remove(struct pci_dev *pdev) ...@@ -15007,7 +15008,7 @@ static void __devexit advansys_pci_remove(struct pci_dev *pdev)
} }
static struct pci_driver advansys_pci_driver = { static struct pci_driver advansys_pci_driver = {
.name = "advansys", .name = DRV_NAME,
.id_table = advansys_pci_tbl, .id_table = advansys_pci_tbl,
.probe = advansys_pci_probe, .probe = advansys_pci_probe,
.remove = __devexit_p(advansys_pci_remove), .remove = __devexit_p(advansys_pci_remove),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment