aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gvp11.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2009-01-02 11:41:24 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-01-02 12:16:18 -0600
commitd38f47a977e5d314a2e21db0806ca4f76cb0576b (patch)
treee88aec98540081f14c62984a3fdebfa6c9e5c2af /drivers/scsi/gvp11.c
parentc31558efcc45651d3e324ea861ee5934cafef8e2 (diff)
downloadkernel_samsung_smdk4412-d38f47a977e5d314a2e21db0806ca4f76cb0576b.zip
kernel_samsung_smdk4412-d38f47a977e5d314a2e21db0806ca4f76cb0576b.tar.gz
kernel_samsung_smdk4412-d38f47a977e5d314a2e21db0806ca4f76cb0576b.tar.bz2
[SCSI] a2091, gvp11: kill warn_unused_result warnings
warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/gvp11.c')
-rw-r--r--drivers/scsi/gvp11.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c
index ca73637..5d1bf7e 100644
--- a/drivers/scsi/gvp11.c
+++ b/drivers/scsi/gvp11.c
@@ -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);
}