* [PATCH] scx200: s/0/NULL/ in pointer context
@ 2005-01-09 9:52 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-01-09 9:52 UTC (permalink / raw)
To: Christer Weinigel; +Cc: linux-kernel
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-09 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-09 9:52 [PATCH] scx200: s/0/NULL/ in pointer context Alexey Dobriyan
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).