From: Bob Miller <rem@osdl.org>
To: linux-kernel@vger.kernel.org
Cc: trivial@rustcorp.com.au
Subject: [PATCH 2.5.68] Convert ipmi_kcs_intf.c to remove check_region().
Date: Fri, 2 May 2003 13:41:22 -0700 [thread overview]
Message-ID: <20030502204122.GA25713@doc.pdx.osdl.net> (raw)
Removed the now defunct check_mem_region() and check_region() calls.
The driver doesn't use the memory/ioport address between the check_region()
and request_region() calls so it is safe to just remove the check_region()
call.
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
diff -Nru a/drivers/char/ipmi/ipmi_kcs_intf.c b/drivers/char/ipmi/ipmi_kcs_intf.c
--- a/drivers/char/ipmi/ipmi_kcs_intf.c Fri May 2 09:52:22 2003
+++ b/drivers/char/ipmi/ipmi_kcs_intf.c Fri May 2 09:52:22 2003
@@ -1118,24 +1118,14 @@
if (kcs_trydefaults) {
#ifdef CONFIG_ACPI
if ((physaddr = acpi_find_bmc())) {
- if (!check_mem_region(physaddr, 2)) {
- rv = init_one_kcs(0,
- 0,
- physaddr,
- &(kcs_infos[pos]));
- if (rv == 0)
- pos++;
- }
- }
-#endif
- if (!check_region(DEFAULT_IO_PORT, 2)) {
- rv = init_one_kcs(DEFAULT_IO_PORT,
- 0,
- 0,
- &(kcs_infos[pos]));
+ rv = init_one_kcs(0, 0, physaddr, &(kcs_infos[pos]));
if (rv == 0)
pos++;
}
+#endif
+ rv = init_one_kcs(DEFAULT_IO_PORT, 0, 0, &(kcs_infos[pos]));
+ if (rv == 0)
+ pos++;
}
if (kcs_infos[0] == NULL) {
reply other threads:[~2003-05-02 20:29 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=20030502204122.GA25713@doc.pdx.osdl.net \
--to=rem@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®