mtd/drivers/mtd/maps tqm8xxl.c,1.3,1.4

Marius Groeger mag at infradead.org
Thu Jun 20 09:41:23 EDT 2002


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

Modified Files:
	tqm8xxl.c 
Log Message:
- Remove obsolete static map
- Initialize map_banks[idx]->size properly before probing


Index: tqm8xxl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/tqm8xxl.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tqm8xxl.c	2 Oct 2001 15:05:14 -0000	1.3
+++ tqm8xxl.c	20 Jun 2002 13:41:20 -0000	1.4
@@ -91,20 +91,6 @@
 	memcpy_toio((void *)(map->map_priv_1 + to), from, len);
 }
 
-struct map_info tqm8xxl_map = {
-	name: "TQM8xxL",
-	//size: WINDOW_SIZE,
-	buswidth: 4,
-	read8: tqm8xxl_read8,
-	read16: tqm8xxl_read16,
-	read32: tqm8xxl_read32,
-	copy_from: tqm8xxl_copy_from,
-	write8: tqm8xxl_write8,
-	write16: tqm8xxl_write16,
-	write32: tqm8xxl_write32,
-	copy_to: tqm8xxl_copy_to
-};
-
 /*
  * Here are partition information for all known TQM8xxL series devices.
  * See include/linux/mtd/partitions.h for definition of the mtd_partition
@@ -204,8 +190,9 @@
 			goto error_mem;
 		}
 		memset((void *)map_banks[idx]->name, 0, 16);
-		
+
 		sprintf(map_banks[idx]->name, "TQM8xxL%d", idx);
+		map_banks[idx]->size = flash_size;
 		map_banks[idx]->buswidth = 4;
 		map_banks[idx]->read8 = tqm8xxl_read8;
 		map_banks[idx]->read16 = tqm8xxl_read16;





More information about the linux-mtd-cvs mailing list