提交 d38f47a9 编写于 作者: G Geert Uytterhoeven 提交者: James Bottomley

[SCSI] a2091, gvp11: kill warn_unused_result warnings

warning: ignoring return value of 'request_irq', declared with attribute
warn_unused_result
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
上级 c31558ef
...@@ -169,10 +169,8 @@ int __init a2091_detect(struct scsi_host_template *tpnt) ...@@ -169,10 +169,8 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
continue; continue;
instance = scsi_register (tpnt, sizeof (struct WD33C93_hostdata)); instance = scsi_register (tpnt, sizeof (struct WD33C93_hostdata));
if (instance == NULL) { if (instance == NULL)
release_mem_region(address, 256); goto release;
continue;
}
instance->base = ZTWO_VADDR(address); instance->base = ZTWO_VADDR(address);
instance->irq = IRQ_AMIGA_PORTS; instance->irq = IRQ_AMIGA_PORTS;
instance->unique_id = z->slotaddr; instance->unique_id = z->slotaddr;
...@@ -183,10 +181,18 @@ int __init a2091_detect(struct scsi_host_template *tpnt) ...@@ -183,10 +181,18 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
HDATA(instance)->fast = 0; HDATA(instance)->fast = 0;
HDATA(instance)->dma_mode = CTRL_DMA; HDATA(instance)->dma_mode = CTRL_DMA;
wd33c93_init(instance, regs, dma_setup, dma_stop, WD33C93_FS_8_10); wd33c93_init(instance, regs, dma_setup, dma_stop, WD33C93_FS_8_10);
request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI", if (request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI",
instance); instance))
goto unregister;
DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN; DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN;
num_a2091++; num_a2091++;
continue;
unregister:
scsi_unregister(instance);
wd33c93_release();
release:
release_mem_region(address, 256);
} }
return num_a2091; return num_a2091;
......
...@@ -329,12 +329,16 @@ int __init gvp11_detect(struct scsi_host_template *tpnt) ...@@ -329,12 +329,16 @@ int __init gvp11_detect(struct scsi_host_template *tpnt)
(epc & GVP_SCSICLKMASK) ? WD33C93_FS_8_10 (epc & GVP_SCSICLKMASK) ? WD33C93_FS_8_10
: WD33C93_FS_12_15); : WD33C93_FS_12_15);
request_irq(IRQ_AMIGA_PORTS, gvp11_intr, IRQF_SHARED, "GVP11 SCSI", if (request_irq(IRQ_AMIGA_PORTS, gvp11_intr, IRQF_SHARED, "GVP11 SCSI",
instance); instance))
goto unregister;
DMA(instance)->CNTR = GVP11_DMAC_INT_ENABLE; DMA(instance)->CNTR = GVP11_DMAC_INT_ENABLE;
num_gvp11++; num_gvp11++;
continue; continue;
unregister:
scsi_unregister(instance);
wd33c93_release();
release: release:
release_mem_region(address, 256); release_mem_region(address, 256);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册