mtd/drivers/mtd/maps sbc_gxx.c,1.25,1.26

David Woodhouse dwmw2 at infradead.org
Mon May 26 04:50:39 EDT 2003


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv20509

Modified Files:
	sbc_gxx.c 
Log Message:
Correct check for request_region success


Index: sbc_gxx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sbc_gxx.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- sbc_gxx.c	21 May 2003 15:12:01 -0000	1.25
+++ sbc_gxx.c	26 May 2003 08:50:36 -0000	1.26
@@ -242,7 +242,7 @@
 		return -EIO;
 	}
 	
-	if (request_region( PAGE_IO, PAGE_IO_SIZE, "SBC-GXx flash")) {
+	if (!request_region( PAGE_IO, PAGE_IO_SIZE, "SBC-GXx flash")) {
 		printk( KERN_ERR"%s: IO ports 0x%x-0x%x in use\n",
 			sbc_gxx_map.name,
 			PAGE_IO, PAGE_IO+PAGE_IO_SIZE-1 );




More information about the linux-mtd-cvs mailing list