Commit fcb58746 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] region handling cleanup

Done by William Stinson.
Adds error handling to request_region() calls,
and converts some old check_region() calls too.
parent 96a878c0
......@@ -134,7 +134,8 @@ int oakscsi_detect(Scsi_Host_Template * tpnt)
ecard_claim(ecs[count]);
instance->n_io_port = 255;
request_region (instance->io_port, instance->n_io_port, "Oak SCSI");
if (!request_region (instance->io_port, instance->n_io_port, "Oak SCSI"))
break;
if (instance->irq != IRQ_NONE)
if (request_irq(instance->irq, do_oakscsi_intr, SA_INTERRUPT, "Oak SCSI", NULL)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment