Commit d2e8d48b 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 53887e3d
...@@ -382,8 +382,13 @@ cumanascsi_2_detect(Scsi_Host_Template *tpnt) ...@@ -382,8 +382,13 @@ cumanascsi_2_detect(Scsi_Host_Template *tpnt)
ecs[count]->irq_data = (void *)info->alatch; ecs[count]->irq_data = (void *)info->alatch;
ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops; ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops;
request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET, if (!request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas"); 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas")) {
scsi_unregister(host);
ecard_release(ecs[count]);
break;
}
if (host->irq != NO_IRQ && if (host->irq != NO_IRQ &&
request_irq(host->irq, cumanascsi_2_intr, request_irq(host->irq, cumanascsi_2_intr,
......
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