mtd/drivers/mtd/devices blkmtd.c,1.12,1.13

spse at infradead.org spse at infradead.org
Wed Sep 4 18:20:11 EDT 2002


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

Modified Files:
	blkmtd.c 
Log Message:


Add initial support for multiple devices (device=<dev1>,<dev2>)
Fix calc_erase_regions do the allocation for the mtd_erase_region_info
so it is only called once.
get rid of typedef


Index: blkmtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/blkmtd.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- blkmtd.c	4 Sep 2002 21:43:37 -0000	1.12
+++ blkmtd.c	4 Sep 2002 22:20:08 -0000	1.13
@@ -50,6 +50,7 @@
 #include <linux/iobuf.h>
 #include <linux/slab.h>
 #include <linux/pagemap.h>
+#include <linux/list.h>
 #include <linux/mtd/compatmac.h>
 #include <linux/mtd/mtd.h>
 
@@ -69,11 +70,12 @@
 
 
 /* Default erase size in K, always make it a multiple of PAGE_SIZE */
[...1105 lines suppressed...]
+		return 0;
 
+	/* There are no devices, so kill the thread and get quit */
+	write_task_finish = 1;
+	wake_up_interruptible(&thr_wq);
+	down(&thread_sem);
+
+ init_err:
 	if(write_queue) {
 		kfree(write_queue);
 		write_queue = NULL;
@@ -1308,7 +1407,7 @@
 
 	if(erase_page) 
 		__free_pages(erase_page, 0);
-	return err;
+	return -EINVAL;
 }
 
 module_init(init_blkmtd);





More information about the linux-mtd-cvs mailing list