mtd/drivers/mtd/maps sbc_gxx.c,1.24,1.25
David Woodhouse
dwmw2 at infradead.org
Wed May 21 11:12:04 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv26688/drivers/mtd/maps
Modified Files:
sbc_gxx.c
Log Message:
remove check_region
Index: sbc_gxx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sbc_gxx.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- sbc_gxx.c 20 May 2003 20:59:31 -0000 1.24
+++ sbc_gxx.c 21 May 2003 15:12:01 -0000 1.25
@@ -235,12 +235,6 @@
int __init init_sbc_gxx(void)
{
- if (check_region(PAGE_IO,PAGE_IO_SIZE) != 0) {
- 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 );
- return -EAGAIN;
- }
iomapadr = (unsigned long)ioremap(WINDOW_START, WINDOW_LENGTH);
if (!iomapadr) {
printk( KERN_ERR"%s: failed to ioremap memory region\n",
@@ -248,7 +242,14 @@
return -EIO;
}
- 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 );
+ iounmap((void *)iomapadr);
+ return -EAGAIN;
+ }
+
printk( KERN_INFO"%s: IO:0x%x-0x%x MEM:0x%x-0x%x\n",
sbc_gxx_map.name,
More information about the linux-mtd-cvs
mailing list