Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68885
b: refs/heads/master
c: 01fbfe0
h: refs/heads/master
i:
  68883: a5cdc1f
v: v3
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent 4563317 commit 169141b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95c9f16284960f579205d7da8b5d90e2f3bf44a7
refs/heads/master: 01fbfe0b8359695a3ff7f4b79ab1e0a777f10ae4
23 changes: 12 additions & 11 deletions trunk/drivers/scsi/advansys.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define DRV_NAME "advansys"
#define ASC_VERSION "3.4" /* AdvanSys Driver Version */

/*
Expand Down Expand Up @@ -3213,11 +3214,11 @@ advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev,
}

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,
Expand Down Expand Up @@ -14634,7 +14635,7 @@ advansys_board_found(int iop, struct device *dev, int bus_type)
/* 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",
Expand All @@ -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);

ret = request_irq(shost->irq, advansys_interrupt, share_irq,
"advansys", shost);
DRV_NAME, shost);

if (ret) {
if (ret == -EBUSY) {
Expand Down Expand Up @@ -14754,7 +14755,7 @@ static int __devinit advansys_isa_probe(struct device *dev, unsigned int id)
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;
Expand Down Expand Up @@ -14790,7 +14791,7 @@ static struct isa_driver advansys_isa_driver = {
.remove = __devexit_p(advansys_isa_remove),
.driver = {
.owner = THIS_MODULE,
.name = "advansys",
.name = DRV_NAME,
},
};

Expand All @@ -14799,7 +14800,7 @@ static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id)
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;
Expand Down Expand Up @@ -14867,7 +14868,7 @@ static int __devinit advansys_eisa_probe(struct device *dev)

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;
Expand Down Expand Up @@ -14925,7 +14926,7 @@ static __devexit int advansys_eisa_remove(struct device *dev)
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),
}
Expand Down Expand Up @@ -14972,7 +14973,7 @@ advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
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);
Expand Down Expand Up @@ -15007,7 +15008,7 @@ static void __devexit advansys_pci_remove(struct pci_dev *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),
Expand Down

0 comments on commit 169141b

Please sign in to comment.