From: Rasmus Andersen <rasmus@jaquet.dk>
To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: [PATCH] drivers/scsi/qla1280.c check_region -> request->region (241p9)
Date: Tue, 23 Jan 2001 23:22:46 +0100 [thread overview]
Message-ID: <20010123232246.J607@jaquet.dk> (raw)
Hi.
The following patch makes drivers/scsi/qla1280.c use the return code
of request_region instead of a call to check_region. It applies cleanly
against ac10 and 241p9.
Comments?
--- linux-ac10-clean/drivers/scsi/qla1280.c Wed Dec 6 21:06:18 2000
+++ linux-ac10/drivers/scsi/qla1280.c Sat Jan 20 23:07:09 2001
@@ -939,7 +939,7 @@
}
/* Register the I/O space with Linux */
- if (check_region(host->io_port, 0xff))
+ if (!request_region(host->io_port, 0xff, "qla1280"))
{
printk("qla1280 : Failed to reserved i/o region 0x%04lx-0x%04lx already in use\n",
host->io_port, host->io_port + 0xff);
@@ -948,8 +948,6 @@
scsi_unregister(host);
return 1;
}
-
- request_region(host->io_port, 0xff, "qla1280");
return 0;
}
--
Regards,
Rasmus(rasmus@jaquet.dk)
"It's like an Alcatraz around my neck."
-Boston mayor Menino on the shortage of city parking spaces
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2001-01-23 22:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010123232246.J607@jaquet.dk \
--to=rasmus@jaquet.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).