archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <>
To: Christer Weinigel <>
Subject: [PATCH] scx200: s/0/NULL/ in pointer context
Date: Sun, 9 Jan 2005 11:52:50 +0200	[thread overview]
Message-ID: <> (raw)

Signed-off-by: Alexey Dobriyan <>

Index: linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c
--- linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c	(revision 3)
+++ linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c	(revision 4)
@@ -48,7 +48,7 @@
 	base = pci_resource_start(pdev, 0);
 	printk(KERN_INFO NAME ": GPIO base 0x%x\n", base);
-	if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == 0) {
+	if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == NULL) {
 		printk(KERN_ERR NAME ": can't allocate I/O for GPIOs\n");
 		return -EBUSY;

                 reply	other threads:[~2005-01-09  8:59 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).