From: Rasmus Andersen <rasmus@jaquet.dk>
To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] drives/scsi/tmscsim.c: check_region -> request_region (241p9)
Date: Tue, 23 Jan 2001 23:42:30 +0100 [thread overview]
Message-ID: <20010123234230.A9514@jaquet.dk> (raw)
(Forgot to cc lk. If anyone have comments please cc garloff@suse.de.
Thanks.)
----- Forwarded message from Rasmus Andersen <rasmus@jaquet.dk> -----
Hi.
The following patch makes drives/scsi/tmscsim.c use request_region
instead of check_region+request_region. It applies cleanly against
ac10 and with a little fuzz against 241p9.
Please comment.
--- linux-ac10-clean/drivers/scsi/tmscsim.c Sat Jan 20 15:17:13 2001
+++ linux-ac10/drivers/scsi/tmscsim.c Sat Jan 20 23:17:29 2001
@@ -2088,13 +2088,11 @@
pACB = (PACB) psh->hostdata;
- if (check_region (io_port, psh->n_io_port))
+ if (!request_region (io_port, psh->n_io_port, "tmscsim"))
{
printk(KERN_ERR "DC390: register IO ports error!\n");
return( -1 );
}
- else
- request_region (io_port, psh->n_io_port, "tmscsim");
DC390_read8_ (INT_Status, io_port); /* Reset Pending INT */
----- End forwarded message -----
--
Rasmus(rasmus@jaquet.dk)
"The obvious mathematical breakthrough would be development of an easy way
to factor large prime numbers."
-- Bill Gates, The Road Ahead, Viking Penguin (1995)
-
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:43 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=20010123234230.A9514@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).