Skip to contentSkip to conversation

scx200: s/0/NULL/ in pointer context

PATCH New Alexey Dobriyan 1 participant 1 message Jan 9, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scx200: s/0/NULL/ in pointer context

arch/i386/kernel/scx200.c +1 -1
Index: linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c
===================================================================
@@ -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;
 	}