Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127897
b: refs/heads/master
c: d38f47a
h: refs/heads/master
i:
  127895: 0dfb620
v: v3
  • Loading branch information
Geert Uytterhoeven authored and James Bottomley committed Jan 2, 2009
1 parent bafb1c9 commit 57816ab
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 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: c31558efcc45651d3e324ea861ee5934cafef8e2
refs/heads/master: d38f47a977e5d314a2e21db0806ca4f76cb0576b
18 changes: 12 additions & 6 deletions trunk/drivers/scsi/a2091.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,8 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
continue;

instance = scsi_register (tpnt, sizeof (struct WD33C93_hostdata));
if (instance == NULL) {
release_mem_region(address, 256);
continue;
}
if (instance == NULL)
goto release;
instance->base = ZTWO_VADDR(address);
instance->irq = IRQ_AMIGA_PORTS;
instance->unique_id = z->slotaddr;
Expand All @@ -183,10 +181,18 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
HDATA(instance)->fast = 0;
HDATA(instance)->dma_mode = CTRL_DMA;
wd33c93_init(instance, regs, dma_setup, dma_stop, WD33C93_FS_8_10);
request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI",
instance);
if (request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI",
instance))
goto unregister;
DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN;
num_a2091++;
continue;

unregister:
scsi_unregister(instance);
wd33c93_release();
release:
release_mem_region(address, 256);
}

return num_a2091;
Expand Down
8 changes: 6 additions & 2 deletions trunk/drivers/scsi/gvp11.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,16 @@ int __init gvp11_detect(struct scsi_host_template *tpnt)
(epc & GVP_SCSICLKMASK) ? WD33C93_FS_8_10
: WD33C93_FS_12_15);

request_irq(IRQ_AMIGA_PORTS, gvp11_intr, IRQF_SHARED, "GVP11 SCSI",
instance);
if (request_irq(IRQ_AMIGA_PORTS, gvp11_intr, IRQF_SHARED, "GVP11 SCSI",
instance))
goto unregister;
DMA(instance)->CNTR = GVP11_DMAC_INT_ENABLE;
num_gvp11++;
continue;

unregister:
scsi_unregister(instance);
wd33c93_release();
release:
release_mem_region(address, 256);
}
Expand Down

0 comments on commit 57816ab

Please sign in to comment.