mtd/drivers/mtd/maps map_funcs.c,1.8,1.9

David Woodhouse dwmw2 at infradead.org
Tue Jul 13 18:33:17 EDT 2004


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

Modified Files:
	map_funcs.c 
Log Message:
check bankwidth is supported

Index: map_funcs.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/map_funcs.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- map_funcs.c	12 Jul 2004 14:34:25 -0000	1.8
+++ map_funcs.c	13 Jul 2004 22:33:15 -0000	1.9
@@ -32,6 +32,8 @@
 
 void simple_map_init(struct map_info *map)
 {
+	BUG_ON(!map_bankwidth_supported(map->bankwidth));
+
 	map->read = simple_map_read;
 	map->write = simple_map_write;
 	map->copy_from = simple_map_copy_from;





More information about the linux-mtd-cvs mailing list