mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Omkhar Arasaratnam <omkhar@rogers.com>
To: emoenke@gwdg.de
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [PATCH] drivers/cdrom/sjcd.c check_region() fix - take 2
Date: Mon, 29 Dec 2003 17:58:37 -0500	[thread overview]
Message-ID: <20031229225837.GA17304@omkhar.ibm.com> (raw)

My apologize for the first patch, this one should work better
(and be kinder to patch :)

--- linux-clean/drivers/cdrom/sjcd.c.org	2003-12-29 17:32:00.000000000 -0500
+++ linux-clean/drivers/cdrom/sjcd.c	2003-12-29 17:53:42.000000000 -0500
@@ -1700,7 +1700,7 @@
 	sprintf(sjcd_disk->disk_name, "sjcd");
 	sprintf(sjcd_disk->devfs_name, "sjcd");
 
-	if (check_region(sjcd_base, 4)) {
+	if (!request_region(sjcd_base, 4,"sjcd")) {
 		printk
 		    ("SJCD: Init failed, I/O port (%X) is already in use\n",
 		     sjcd_base);

O

                 reply	other threads:[~2003-12-29 22:58 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=20031229225837.GA17304@omkhar.ibm.com \
    --to=omkhar@rogers.com \
    --cc=emoenke@gwdg.de \
    --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®