+#define DRV_NAME "advansys"
#define ASC_VERSION "3.4" /* AdvanSys Driver Version */
/*
}
static struct scsi_host_template advansys_template = {
- .proc_name = "advansys",
+ .proc_name = DRV_NAME,
#ifdef CONFIG_PROC_FS
.proc_info = advansys_proc_info,
#endif
- .name = "advansys",
+ .name = DRV_NAME,
.info = advansys_info,
.queuecommand = advansys_queuecommand,
.eh_bus_reset_handler = advansys_reset,
/* Register DMA channel for ISA bus. */
if (asc_dvc_varp->bus_type & ASC_IS_ISA) {
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) {
ASC_PRINT3
("advansys_board_found: board %d: request_dma() %d failed %d\n",
ASC_DBG1(2, "advansys_board_found: request_irq() %d\n", shost->irq);
ret = request_irq(shost->irq, advansys_interrupt, share_irq,
- "advansys", shost);
+ DRV_NAME, shost);
if (ret) {
if (ret == -EBUSY) {
PortAddr iop_base = _asc_def_iop_base[id];
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",
iop_base);
return -ENODEV;
.remove = __devexit_p(advansys_isa_remove),
.driver = {
.owner = THIS_MODULE,
- .name = "advansys",
+ .name = DRV_NAME,
},
};
PortAddr iop_base = _asc_def_iop_base[id];
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",
iop_base);
return -ENODEV;
err = -ENODEV;
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,
ioport + ASC_IOADR_GAP - 1);
continue;
static struct eisa_driver advansys_eisa_driver = {
.id_table = advansys_eisa_table,
.driver = {
- .name = "advansys",
+ .name = DRV_NAME,
.probe = advansys_eisa_probe,
.remove = __devexit_p(advansys_eisa_remove),
}
err = pci_enable_device(pdev);
if (err)
goto fail;
- err = pci_request_regions(pdev, "advansys");
+ err = pci_request_regions(pdev, DRV_NAME);
if (err)
goto disable_device;
pci_set_master(pdev);
}
static struct pci_driver advansys_pci_driver = {
- .name = "advansys",
+ .name = DRV_NAME,
.id_table = advansys_pci_tbl,
.probe = advansys_pci_probe,
.remove = __devexit_p(advansys_pci_remove),