From: Omkhar Arasaratnam <omkhar@rogers.com>
To: axeboe@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] drivers/cdrom/isp16.c check_region() fix
Date: Mon, 29 Dec 2003 14:42:23 -0500 [thread overview]
Message-ID: <20031229194222.GA26019@omkhar.ibm.com> (raw)
check_region is depreciated in 2.6, this replaces it with request_region
As this is my first patch to the kernel, please let me know if I did anything wrong
--- /usr/src/linux/drivers/cdrom/isp16.c 2001-09-07 12:28:38.000000000 -0400
+++ drivers/cdrom/isp16.c 2003-12-29 14:07:24.000000000 -0500
@@ -121,11 +121,12 @@
return (0);
}
- if (check_region(ISP16_IO_BASE, ISP16_IO_SIZE)) {
+ if (!request_region(ISP16_IO_BASE, ISP16_IO_SIZE,"isp16")) {
printk("ISP16: i/o ports already in use.\n");
return (-EIO);
}
-
+ release_region(ISP16_IO_BASE, ISP16_IO_SIZE);
+
if ((isp16_type = isp16_detect()) < 0) {
printk("ISP16: no cdrom interface found.\n");
return (-EIO);
next reply other threads:[~2003-12-29 19:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-29 19:42 Omkhar Arasaratnam [this message]
2003-12-29 20:04 ` [PATCH] drivers/cdrom/isp16.c check_region() fix Christoph Hellwig
2003-12-29 20:13 ` viro
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=20031229194222.GA26019@omkhar.ibm.com \
--to=omkhar@rogers.com \
--cc=axeboe@suse.de \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.