mtd/drivers/mtd mtdblock-24.c,1.4,1.5 mtdblock-25.c,1.1,1.2 mtdblock-core.c,1.2,1.3

David Woodhouse dwmw2 at infradead.org
Fri May 16 12:00:36 EDT 2003


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

Modified Files:
	mtdblock-24.c mtdblock-25.c mtdblock-core.c 
Log Message:
Move module_init(), fix daemonize() for 2.5 compat.


Index: mtdblock-24.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdblock-24.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- mtdblock-24.c	15 May 2003 16:52:35 -0000	1.4
+++ mtdblock-24.c	16 May 2003 16:00:33 -0000	1.5
@@ -257,12 +257,11 @@
 
 	/* we might get involved when memory gets low, so use PF_MEMALLOC */
 	tsk->flags |= PF_MEMALLOC;
-	strcpy(tsk->comm, "mtdblockd");
 	spin_lock_irq(&tsk->sigmask_lock);
 	sigfillset(&tsk->blocked);
 	recalc_sigpending();
 	spin_unlock_irq(&tsk->sigmask_lock);
-	daemonize();
+	daemonize("mtdblockd");
 
 	while (!leaving) {
 		add_wait_queue(&thr_wq, &wait);
@@ -388,7 +387,6 @@
 int __init init_mtdblock(void)
 {
 	int i;
-
 	spin_lock_init(&mtdblks_lock);
 
 #ifdef CONFIG_DEVFS_FS
@@ -442,3 +440,5 @@
 	blk_size[MAJOR_NR] = NULL;
 }
 
+module_init(init_mtdblock);
+module_exit(cleanup_mtdblock);

Index: mtdblock-25.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdblock-25.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mtdblock-25.c	27 Nov 2002 10:32:27 -0000	1.1
+++ mtdblock-25.c	16 May 2003 16:00:33 -0000	1.2
@@ -393,3 +393,6 @@
 	blk_cleanup_queue(&mtd_queue);
 }
 
+module_init(init_mtdblock);
+module_exit(cleanup_mtdblock);
+

Index: mtdblock-core.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdblock-core.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mtdblock-core.c	24 Jan 2003 15:39:41 -0000	1.2
+++ mtdblock-core.c	16 May 2003 16:00:33 -0000	1.3
@@ -226,9 +226,6 @@
 	return 0;
 }
 
-module_init(init_mtdblock);
-module_exit(cleanup_mtdblock);
-
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Nicolas Pitre <nico at cam.org> et al.");
 MODULE_DESCRIPTION("Caching read/erase/writeback block device emulation access to MTD devices");




More information about the linux-mtd-cvs mailing list